Tuesday, 15 June 2010

iis 7 - IIS 7 - Rewrite rule not firing, but does work with Redirect -



iis 7 - IIS 7 - Rewrite rule not firing, but does work with Redirect -

i have next rewrite rule set on iis 7:

<rule name="rewrite /publicfiles/guid/file.ext" stopprocessing="true"> <match url="^/?publicfiles/(.*)/(.*)" /> <action type="rewrite" url="http://www.domain.tld" appendquerystring="false" / </rule>

when seek out appears not fire. 404 error, if alter type redirect fires , sends me url specified. able shed lite on this?

edit: added definition of rule web.config of iis server rather site , worked perfectly. not feasible need configure rule individual sites. ideas?

it wasn't global rule after all. turned out had install application request routing , worked site rule :)

iis iis-7 url-rewriting rewrite

No comments:

Post a Comment