Skip to content

Instantly share code, notes, and snippets.

@quilime
Created November 29, 2010 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quilime/719679 to your computer and use it in GitHub Desktop.
Save quilime/719679 to your computer and use it in GitHub Desktop.
.htaccess for web applications
# Pass existing files, symlinks, directories through like normal
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# Pass everything else to the application
RewriteRule ^.*$ application.php [NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment