From b86f7fbd4addb4b5f93b653650f719e7b04a5b44 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 2 Jun 2024 14:34:56 +0200 Subject: [PATCH] Htaccess avec anti slash dans tous les cas --- .htaccess | 2 ++ core/module/config/config.php | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.htaccess b/.htaccess index 2b8877ec..e9850449 100644 --- a/.htaccess +++ b/.htaccess @@ -39,8 +39,10 @@ Options -Indexes RewriteRule ^ %1 [R=301,L] # ne pas supprimer la ligne URL rewriting ! + # URL rewriting + diff --git a/core/module/config/config.php b/core/module/config/config.php index dbcbc103..a55a2b0b 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -524,12 +524,6 @@ class config extends common // Ajout des lignes dans le .htaccess $fileContent = file_get_contents('.htaccess'); $rewriteData = PHP_EOL . - ' # Enlever le slash final des URL' . PHP_EOL . - 'RewriteCond %{REQUEST_FILENAME} !-f' . PHP_EOL . - 'RewriteCond %{REQUEST_FILENAME} !-d' . PHP_EOL . - 'RewriteCond %{REQUEST_URI} ^(.+)/$' . PHP_EOL . - 'RewriteRule ^ %1 [R=301,L]' . PHP_EOL . - PHP_EOL . '# URL rewriting' . PHP_EOL . '' . PHP_EOL . "\tRewriteEngine on" . PHP_EOL .