fix: 🔒 add redirection on htaccess

This commit is contained in:
K Muller 2026-04-21 09:27:28 +02:00
parent 7944d3b68c
commit e2b8a6db6e

View file

@ -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}]