Skip to content

Instantly share code, notes, and snippets.

@thedeerchild
Created November 24, 2012 18:49
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 thedeerchild/4140915 to your computer and use it in GitHub Desktop.
Save thedeerchild/4140915 to your computer and use it in GitHub Desktop.
Sends all requests in a directory to a single PHP script (index.php).
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment