From c5f993fa2880f2c0772af92db4d5e02d22c5da81 Mon Sep 17 00:00:00 2001 From: Drew Date: Sun, 23 Jul 2017 00:35:36 -0700 Subject: [PATCH] Fixed trailing slash redirection for subdirectory installs. Previously redirection to remove trailing slashes would fail if Laravel was not installed in the root directory. --- public/.htaccess | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/.htaccess b/public/.htaccess index 903f6392c..09683488b 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -7,7 +7,8 @@ # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^(.*)/$ /$1 [L,R=301] + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d