how to remove index.php from uri

#1
[eluser]vantao[/eluser]
my project structure is:
——root-
|-system-
|-application
|-cache
|-...
|-index.php

my .htaccess is:
Quote:RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

while i put .htaccess with the same level with system folder and index.php,it returned nothing.while i check the access.log,there is a 404 message. then i put .htaccess under system folder,the same level with application folder, it works,but only to index.php,while i’m trying to access other target without typing index.php in uri, i got a 404 message too.

what’s wrong?anyone help me?


thanks!

#2
[eluser]skunkbad[/eluser]
You need to go into the config/config.php and delete "index.php"

#3
[eluser]vantao[/eluser]
[quote author="skunkbad" date="1254650157"]You need to go into the config/config.php and delete "index.php"[/quote]

I did it ,
but the page i requested keep loading without return anything, i checked access.log,there is 404 message too?
in addition,the .htaccess file above doesn't work under root folder until i add this two line:
Quote:RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d



what's wrong?

I am using ZendServer, the mod_rewrite is loaded default!!


tks


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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