Désactive rewrite URL sous nginx

This commit is contained in:
Fred Tempez 2022-04-28 12:39:27 +02:00
parent 01dd64f3e1
commit 02766515c5
2 changed files with 14 additions and 2 deletions

View File

@ -33,4 +33,16 @@ Options -Indexes
</IfModule> </IfModule>
# URL rewriting # URL rewriting
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /ZwiiCMS/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>
# URL rewriting

View File

@ -42,9 +42,9 @@
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::checkbox('configRewrite', true, 'URL intelligentes', [ <?php echo template::checkbox('configRewrite', true, 'Réécritures URL Apache', [
'checked' => helper::checkRewrite(), 'checked' => 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 'disabled' => strpos($_SERVER["SERVER_SOFTWARE"], 'Apache') > 0 ? true : false
]); ?> ]); ?>
</div> </div>