Return to Snippet

Revision: 62116
at February 2, 2013 03:18 by telltec


Initial Code
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /cidir
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
</IfModule>

Initial URL

                                

Initial Description
Try to run Codeigniter in a subfolder of a Wordpress installation and want to remove index.php for clean URLs? 

Put this code in a .htaccess file in your codeigniter directory ("cidir" in this example).

Initial Title
.htaccess for Codeigniter in Wordpress subfolder

Initial Tags
wordpress, htaccess, codeigniter

Initial Language
Other