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

#1
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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