Skip to content

Instantly share code, notes, and snippets.

@fabianofa
Last active July 1, 2016 04:39
Show Gist options
  • Save fabianofa/5889805 to your computer and use it in GitHub Desktop.
Save fabianofa/5889805 to your computer and use it in GitHub Desktop.
CodeIgniter .htaccess alternative code to remove index.php from URL
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment