From c7f889fe54d7c58244c575f76ff919c0f4ec15f7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 14 May 2013 00:27:39 -0500 Subject: [PATCH] Move slash redirects to application level. --- bootstrap/start.php | 2 ++ public/.htaccess | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bootstrap/start.php b/bootstrap/start.php index cd8a5b69..9848f9bc 100644 --- a/bootstrap/start.php +++ b/bootstrap/start.php @@ -13,6 +13,8 @@ $app = new Illuminate\Foundation\Application; +$app->redirectIfTrailingSlash(); + /* |-------------------------------------------------------------------------- | Detect The Application Environment diff --git a/public/.htaccess b/public/.htaccess index a3432c2a..1285c511 100644 --- a/public/.htaccess +++ b/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] \ No newline at end of file