Welcome Guest, Not a member yet? Register   Sign In
IIS how to remove index.php from url go?
#1

[eluser]RING[/eluser]
IIS how to remove index.php from url go?

what i want is that rewrite URL just when the url do NOT direct a exist file or a exist folder

apache rewrite:

Quote:RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

rewrite URL just when the url do NOT direct a exist file or a exist folder


but IIS (ISAPI Rewrite) how to define RewriteCond to achieve just like "RewriteCond %{REQUEST_FILENAME} !-d"?
IIS rewrite is a little different from Apache rewrite.

IIS rewrite:
Quote:[ISAPI_Rewrite]
RewriteCond I WANT THE ANSWER HERE
RewriteCond $1 !^(index.php|images|robots\.txt)

RewriteRule ^(.*)$ index.php/$1 [L]




Theme © iAndrew 2016 - Forum software by © MyBB