From a128bfb5726e9dbb1639352c025f7776e37e9ac0 Mon Sep 17 00:00:00 2001 From: K Muller Date: Tue, 21 Apr 2026 09:41:05 +0200 Subject: [PATCH] fix: :bug: change order of redirection --- public/.htaccess | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index d290395a..dc7c3ed0 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -5,10 +5,6 @@ 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}] @@ -22,6 +18,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