From 70d9f09a0e91d1b4b8c419b7bb6ed3fbebfaa991 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Fri, 24 Apr 2026 15:09:27 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=94=A7=20add=20redirection=20to?= =?UTF-8?q?=20omit=20index.php=20in=20.htaccess?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/.htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index 3aec5e2..1412a04 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -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