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/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: mod_rewrite doesnt work for removing index.php (/showthread.php?tid=33164)



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