Browse Source

Redirect trailing slashes with 301.

Taylor Otwell 11 years ago
parent
commit
343c31e5db
1 changed files with 4 additions and 0 deletions
  1. 4 0
      public/.htaccess

+ 4 - 0
public/.htaccess

@@ -1,6 +1,10 @@
 <IfModule mod_rewrite.c>
     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>