Merge branch 'fix-htaccess' into 'develop'

fix: 🔒 add redirection on htaccess

See merge request ldc-web/projets/ldc!152
This commit is contained in:
karl.muller 2026-04-21 07:29:16 +00:00
commit cc375fc58d

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