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 = 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>
|
Loading…
Reference in New Issue