Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cellophile
PersonaLink
Commits
6eb77964
Commit
6eb77964
authored
Jul 18, 2021
by
Cellophile
🎨
Browse files
Replace .htaccess
parent
52048f20
Changes
1
Hide whitespace changes
Inline
Side-by-side
.htaccess
View file @
6eb77964
...
...
@@ -8,18 +8,14 @@ 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]
## RewriteRule ^(.*?)index\.php/*(.*) /$1$2 [R=301,NE,L,QSA]
## enlever le cron.php
RewriteCond
%{THE_REQUEST} ^GET.*cron\.php [NC]
RewriteRule
(.*?)cron\.php/*(.*) /$1$2 [R=301,NE,L]
RewriteRule
^(.*?)cron\.php/*(.*) /$1$2 [R=301,NE,L,QSA]
## Interdire l'accès au fichier urlperso.csv
RewriteCond
%{THE_REQUEST} ^GET.*urlperso\.csv [NC]
RewriteRule
(.*?)urlperso\.csv/*(.*) /$1$2 [R=301,NE,L]
RewriteRule
^(.*?)urlperso\.csv/*(.*) /$1$2 [R=301,NE,L,QSA]
## Personnaliser les pages d'erreur
ErrorDocument
400 /index.php?echec=404
ErrorDocument
404 /index.php?echec=404
ErrorDocument
404 /traitement.php
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment