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:
parent
134eafd12c
commit
c5f993fa28
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue