CodeIgniter Forums
mod_rewrite doesnt work for removing index.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: mod_rewrite doesnt work for removing index.php (/thread-33164.html)



mod_rewrite doesnt work for removing index.php - El Forum - 08-17-2010

[eluser]Unknown[/eluser]
I am trying to get rid of the index.php from the url by setting the following:

$config['index_page'] = "";

I am using this htaccess in my root ci folder:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|captcha|css|js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

This doesnt work for me. any clues ?


mod_rewrite doesnt work for removing index.php - El Forum - 08-17-2010

[eluser]InsiteFX[/eluser]
.htaccess needs to be in the same folder as index.php

InsiteFX