/ Published in: Other

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).
Put this code in a .htaccess file in your codeigniter directory ("cidir" in this example).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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>
Comments
