Browse Source

Modified default .htaccess to be more consistent with other popular frameworks.

Taylor Otwell 13 years ago
parent
commit
3f04484b83
1 changed files with 8 additions and 5 deletions
  1. 8 5
      public/.htaccess

+ 8 - 5
public/.htaccess

@@ -1,5 +1,8 @@
-Options +FollowSymLinks
-RewriteEngine on
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . /index.php [L]
+<IfModule mod_rewrite.c>
+    RewriteEngine on
+
+    RewriteCond %{REQUEST_FILENAME} !-f
+    RewriteCond %{REQUEST_FILENAME} !-d
+
+    RewriteRule ^(.*)$ index.php/$1 [L]
+</IfModule>