fix: 🔒 add redirection on htaccess
This commit is contained in:
parent
7944d3b68c
commit
e2b8a6db6e
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