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

This commit is contained in:
Taylor Otwell 2011-06-10 14:15:44 -07:00
parent 328b9fcb28
commit 3f04484b83
1 changed files with 8 additions and 5 deletions

View File

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