Skip to content

Instantly share code, notes, and snippets.

@gkarthikeyanmca
Last active December 17, 2017 09:38
Show Gist options
  • Save gkarthikeyanmca/9e1068667d21c02faa44031939099524 to your computer and use it in GitHub Desktop.
Save gkarthikeyanmca/9e1068667d21c02faa44031939099524 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteBase /{'<i>Your codeigniter folder name,if you installed codeigniter in a subfolder, Otherwise leave it with one backslash</i>'}/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
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