Created
September 14, 2012 21:05
-
-
Save nucklearproject/3724814 to your computer and use it in GitHub Desktop.
.htaccess YII
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DirectoryIndex index.php | |
Options +FollowSymLinks | |
IndexIgnore */* | |
RewriteEngine on | |
# if a directory or a file exists, use it directly | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
# otherwise forward it to index.php | |
RewriteRule . index.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment