Move slash redirects to application level.
This commit is contained in:
@@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
$app = new Illuminate\Foundation\Application;
|
$app = new Illuminate\Foundation\Application;
|
||||||
|
|
||||||
|
$app->redirectIfTrailingSlash();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Detect The Application Environment
|
| Detect The Application Environment
|
||||||
|
|||||||
@@ -2,9 +2,6 @@
|
|||||||
Options -MultiViews
|
Options -MultiViews
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
|
||||||
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
|
|
||||||
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteRule ^ index.php [L]
|
RewriteRule ^ index.php [L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
Reference in New Issue
Block a user