Commit 3dde6bb2 authored by Cellophile's avatar Cellophile 🎨
Browse files

Replace .htaccess

parent 9cab438f
......@@ -3,7 +3,15 @@ RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE,QSA]
## enlever le index.php
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
## enlever le cron.php
RewriteCond %{THE_REQUEST} ^GET.*cron\.php [NC]
RewriteRule (.*?)cron\.php/*(.*) /$1$2 [R=301,NE,L]
## Personnaliser les pages d'erreur
ErrorDocument 400 /index.php?echec=404
ErrorDocument 404 /index.php?echec=404
ErrorDocument 400 /index.php?echec=404
ErrorDocument 404 /index.php?echec=404
Supports Markdown
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