• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with index.php removal !


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/mod_rewrite.so

<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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.