Skip to content

Commit

Permalink
Move slash redirects to application level.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 14, 2013
1 parent 086f296 commit c7f889f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions bootstrap/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

$app = new Illuminate\Foundation\Application;

$app->redirectIfTrailingSlash();

/*
|--------------------------------------------------------------------------
| Detect The Application Environment
Expand Down
3 changes: 0 additions & 3 deletions public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit c7f889f

Please sign in to comment.