Commit 1f08cc90 authored by Cellophile's avatar Cellophile 🎨
Browse files

Replace .htaccess

parent f7031f9a
RewriteEngine on
## www -> no www
RewriteCond %{HTTP_HOST} ^www\.(.+)$
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L,NE,QSA]
## http -> https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE,QSA]
......@@ -11,6 +15,10 @@ RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
RewriteCond %{THE_REQUEST} ^GET.*cron\.php [NC]
RewriteRule (.*?)cron\.php/*(.*) /$1$2 [R=301,NE,L]
## Interdire l'accès au fichier urlperso.csv
RewriteCond %{THE_REQUEST} ^GET.*urlperso\.csv [NC]
RewriteRule (.*?)urlperso\.csv/*(.*) /$1$2 [R=301,NE,L]
## Personnaliser les pages d'erreur
ErrorDocument 400 /index.php?echec=404
ErrorDocument 404 /index.php?echec=404
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment