IIS 7 - Rewrite rule not firing, but does work with Redirect
问题 I have the following rewrite rule set up 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 I try it out it appears to not fire. I get a 404 error, but if I change the type to Redirect it fires and sends me to the URL specified. Is someone able to shed some light on this? EDIT: I added the definition of the rule to the web.config of