Fixed trailing slash redirection for subdirectory installs.

Previously redirection to remove trailing slashes would fail if Laravel was not installed in the root directory.
This commit is contained in:
Drew 2017-07-23 00:35:36 -07:00 committed by GitHub
parent 134eafd12c
commit c5f993fa28

View File

@ -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