CodeIgniter Forums

Full Version: Problems with index.php removal !
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


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

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

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

on Apache http.conf
LoadModule rewrite_module modules/

<Directory />
Options All
AllowOverride All

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.