Browse Source

Désactive rewrite URL sous nginx

12_dev
Fred Tempez 4 months ago
parent
commit
02766515c5
  1. 12
      .htaccess
  2. 4
      core/module/config/view/setup/setup.php

12
.htaccess

@ -33,4 +33,16 @@ Options -Indexes
</IfModule>
# 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

4
core/module/config/view/setup/setup.php

@ -42,9 +42,9 @@
]); ?>
</div>
<div class="col6">
<?php echo template::checkbox('configRewrite', true, 'URL intelligentes', [
<?php echo template::checkbox('configRewrite', true, 'Réécritures URL Apache', [
'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
]); ?>
</div>

Loading…
Cancel
Save