Browse Source

Move slash redirects to application level.

Taylor Otwell 11 years ago
parent
commit
c7f889fe54
2 changed files with 2 additions and 3 deletions
  1. 2 0
      bootstrap/start.php
  2. 0 3
      public/.htaccess

+ 2 - 0
bootstrap/start.php

@@ -13,6 +13,8 @@
 
 $app = new Illuminate\Foundation\Application;
 
+$app->redirectIfTrailingSlash();
+
 /*
 |--------------------------------------------------------------------------
 | Detect The Application Environment

+ 0 - 3
public/.htaccess

@@ -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>