mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Move slash redirects to application level.
This commit is contained in:
parent
086f2966c0
commit
c7f889fe54
@ -13,6 +13,8 @@
|
||||
|
||||
$app = new Illuminate\Foundation\Application;
|
||||
|
||||
$app->redirectIfTrailingSlash();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Detect The Application Environment
|
||||
|
@ -2,9 +2,6 @@
|
||||
Options -MultiViews
|
||||
RewriteEngine On
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</IfModule>
|
Loading…
x
Reference in New Issue
Block a user