From 343c31e5dbb3f7ebd2f764721a8b0461792b2dc6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 9 Apr 2013 15:37:50 -0500 Subject: [PATCH] Redirect trailing slashes with 301. --- public/.htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index 969cfdab..2a235ee4 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,6 +1,10 @@ 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