mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
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…
x
Reference in New Issue
Block a user