how to remove index.php from uri

my project structure is:

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?


You need to go into the config/config.php and delete "index.php"

[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!!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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