Skip to content

Instantly share code, notes, and snippets.

@reinink
Created January 26, 2012 02:29
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 reinink/1680575 to your computer and use it in GitHub Desktop.
Save reinink/1680575 to your computer and use it in GitHub Desktop.
Typical .htaccess index.php rewrite
# Route all requests through index.php
<IfModule mod_rewrite.c>
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment