CodeIgniter Forums
Problems with index.php removal ! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problems with index.php removal ! (/showthread.php?tid=39443)



Problems with index.php removal ! - El Forum - 03-10-2011

[eluser]Kamy[/eluser]
Hi:

I'm developing a site locally and it's working fine. I want to remove the index.php from the URL and tried 2-3 methods mentioned in the forums and another site, all not working.

I hoe to get the answer here......

So here's me setup. My localsite is accessed as: http://shen

Code:
$config['index_page'] = "";
$config['uri_protocol']    = "REQUEST_URI";

.htaccess file, which resides on root of the website.
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

on Apache http.conf
Code:
LoadModule rewrite_module modules/mod_rewrite.so

<Directory />
Options All
AllowOverride All
</Directory>

If I browse to http://shen, home page does show up, but none of the other links. Weird thing is if I browse to http://shen/bio I get Apache 404 error page, but browsing to http://shen/index.php/bio displays CI's 404 page !

Apache restarted.....

Totally confused!

Your help is appreciated.
Kamy