8000 Move slash redirects to application level. · atinder-snippets/laravel@c7f889f · GitHub
[go: up one dir, main page]

Skip to content

Commit c7f889f

Browse files
committed
Move slash redirects to application level.
1 parent 086f296 commit c7f889f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bootstrap/start.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
$app = new Illuminate\Foundation\Application;
1515

16+
$app->redirectIfTrailingSlash();
17+
1618
/*
1719
|--------------------------------------------------------------------------
1820
| Detect The Application Environment

public/.htaccess

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
Options -MultiViews
33
RewriteEngine On
44

5-
RewriteCond %{REQUEST_FILENAME} !-d
6-
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
7-
85
RewriteCond %{REQUEST_FILENAME} !-f
96
RewriteRule ^ index.php [L]
107
</IfModule>

0 commit comments

Comments
 (0)
0