From dd036f559b3213279e4dfa8ab055aeac3dab2521 Mon Sep 17 00:00:00 2001 From: Ben Sampson Date: Fri, 26 Jun 2015 14:26:44 +0100 Subject: [PATCH] Fix redirect loop .htaccess Folders that exist have a redirect loop when visiting them. This is because Apache redirects to trailing slash for folders and the current rule is removing it, Apache then adds a trailing slash again. --- public/.htaccess | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/.htaccess b/public/.htaccess index 77827ae7..69389272 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -5,7 +5,8 @@ RewriteEngine On - # Redirect Trailing Slashes... + # Redirect Trailing Slashes but not for folders... + RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller...