From 96b12bf0d4353a08735a97627c482e9606c5dd61 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 2 Jun 2024 14:31:08 +0200 Subject: [PATCH] htaccess avec la suppression du slash final hors rewriting --- .htaccess | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.htaccess b/.htaccess index 675e30ab..2b8877ec 100644 --- a/.htaccess +++ b/.htaccess @@ -32,17 +32,13 @@ Options -Indexes Options -MultiViews -# 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