Désactive rewrite URL sous nginx
This commit is contained in:
parent
01dd64f3e1
commit
02766515c5
12
.htaccess
12
.htaccess
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user