Skip to content

Instantly share code, notes, and snippets.

@deletosh
Created May 6, 2012 09:42
Show Gist options
  • Save deletosh/2621284 to your computer and use it in GitHub Desktop.
Save deletosh/2621284 to your computer and use it in GitHub Desktop.
Yii .htaccess
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