Skip to content

Instantly share code, notes, and snippets.

@t32
Created March 29, 2012 06:29
Show Gist options
  • Save t32/2234143 to your computer and use it in GitHub Desktop.
Save t32/2234143 to your computer and use it in GitHub Desktop.
CodeIgnitor htaccess
RewriteEngine on
# RewriteCond $1 !^(index\.php|images|robots\.txt|\.css)
# RewriteRule ^(.*)$ /vincent/index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule ^(.*)$ /vincent/index.php?/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment