From 02766515c58de9d65cd0006c4d0bb9cd399d10d0 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 28 Apr 2022 12:39:27 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9sactive=20rewrite=20URL=20sous=20nginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .htaccess | 12 ++++++++++++ core/module/config/view/setup/setup.php | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 3b8c7f11..ec3c06d9 100644 --- a/.htaccess +++ b/.htaccess @@ -33,4 +33,16 @@ Options -Indexes + + # URL rewriting + + RewriteEngine on + RewriteBase /ZwiiCMS/ + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ index.php?$1 [L] + +# URL rewriting + + diff --git a/core/module/config/view/setup/setup.php b/core/module/config/view/setup/setup.php index 64c1bfbe..7c6528f3 100644 --- a/core/module/config/view/setup/setup.php +++ b/core/module/config/view/setup/setup.php @@ -42,9 +42,9 @@ ]); ?>
- helper::checkRewrite(), - 'help' => 'Supprime ? dans les URL, fonctionne qu\'avec Apache Server.', + 'help' => 'Supprime le point d\'interrogation dans les URL, option indisponible sous Nginx', 'disabled' => strpos($_SERVER["SERVER_SOFTWARE"], 'Apache') > 0 ? true : false ]); ?>