Skip to content

Instantly share code, notes, and snippets.

@amit1952
Created August 6, 2013 02:21
Show Gist options
  • Save amit1952/6161477 to your computer and use it in GitHub Desktop.
Save amit1952/6161477 to your computer and use it in GitHub Desktop.
htaccess to implicitly route all requests through index.php
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
# Send request via index.php
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