forked from ZwiiCMS-Team/ZwiiCampus
nouvel htaccess
This commit is contained in:
parent
751bc450b5
commit
2c459a03d4
@ -32,5 +32,13 @@ Options -Indexes
|
|||||||
Options -MultiViews
|
Options -MultiViews
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
# Enlever le slash final des URL
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteCond %{REQUEST_URI} ^(.+)/$
|
||||||
|
RewriteRule ^ %1 [R=301,L]
|
||||||
|
|
||||||
# ne pas supprimer la ligne URL rewriting !
|
# ne pas supprimer la ligne URL rewriting !
|
||||||
|
|
||||||
# URL rewriting
|
# URL rewriting
|
||||||
|
|
||||||
|
@ -557,12 +557,6 @@ class config extends common
|
|||||||
// Ajout des lignes dans le .htaccess
|
// Ajout des lignes dans le .htaccess
|
||||||
$fileContent = file_get_contents('.htaccess');
|
$fileContent = file_get_contents('.htaccess');
|
||||||
$rewriteData = PHP_EOL .
|
$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 .
|
'# URL rewriting' . PHP_EOL .
|
||||||
'<IfModule mod_rewrite.c>' . PHP_EOL .
|
'<IfModule mod_rewrite.c>' . PHP_EOL .
|
||||||
"\tRewriteEngine on" . PHP_EOL .
|
"\tRewriteEngine on" . PHP_EOL .
|
||||||
|
Loading…
Reference in New Issue
Block a user