Skip to content

Instantly share code, notes, and snippets.

@1ik
Created August 12, 2013 10:15
Show Gist options
  • Save 1ik/6209709 to your computer and use it in GitHub Desktop.
Save 1ik/6209709 to your computer and use it in GitHub Desktop.
codeigniter .htaccess file to remove index.php from url. (works both in xampp and wampp)
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment