feat: 🔧 add redirection to omit index.php in .htaccess

This commit is contained in:
Alexis Gousseau 2026-04-24 15:09:27 +02:00
parent 0c9d7da807
commit 70d9f09a0e
No known key found for this signature in database
GPG key ID: 7F3C786EE12DBB72

View file

@ -14,6 +14,10 @@
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Redirect /index.php/anything to /anything
RewriteCond %{THE_REQUEST} /index\.php/([^\s?]*) [NC]
RewriteRule ^index\.php/(.*)$ /$1 [L,R=301,NC]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f