Skip to content

Instantly share code, notes, and snippets.

@amitasthana
Created June 10, 2014 05:38
Show Gist options
  • Save amitasthana/46b5ebd12f07f80c5710 to your computer and use it in GitHub Desktop.
Save amitasthana/46b5ebd12f07f80c5710 to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
# Send request via index.php
${1:this}
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