htaccess avec la suppression du slash final hors rewriting

This commit is contained in:
Fred Tempez 2024-06-02 14:31:08 +02:00
parent 97e50f245c
commit 96b12bf0d4

View File

@ -32,17 +32,13 @@ Options -Indexes
Options -MultiViews
</IfModule>
# ne pas supprimer la ligne URL rewriting !
# Enlever le slash final des URL
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^ %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^ %1 [R=301,L]
# ne pas supprimer la ligne URL rewriting !
# URL rewriting