Commit dd036f55 authored by Ben Sampson's avatar Ben Sampson

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.
parent a9ca36a8
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
RewriteEngine On RewriteEngine On
# Redirect Trailing Slashes... # Redirect Trailing Slashes but not for folders...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301] RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller... # Handle Front Controller...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment