Merge branch 'fix-htaccess' into 'develop'
fix: 🔒 add redirection on htaccess
See merge request ldc-web/projets/ldc!152
This commit is contained in:
commit
cc375fc58d
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,10 @@
|
|||
|
||||
RewriteEngine On
|
||||
|
||||
# Redirect /index.php/anything to /anything
|
||||
RewriteCond %{THE_REQUEST} /index\.php/([^\s?]*) [NC]
|
||||
RewriteRule ^index\.php/(.*)$ /$1 [L,R=301,NC]
|
||||
|
||||
# Handle Authorization Header
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue