Reputation: 1840
Here is my problem, I need to rewrite one image with another (don't ask why). Simple URLRewrite rule is not working.
Every time someone fetch this URL: http://example.com/images/001.jpg IIS should show 002.jpg (http://example.com/images/002.jpg)
web.config:
<rules>
<rule name="img1" stopProcessing="true">
<match url="images/001.jpg" />
<action type="Rewrite" url="images/002.jpg" appendQueryString="false" />
</rule>
</rules>
Upvotes: 0
Views: 690
Reputation: 5215
I tested your URL rewrite rule and it works normally on my side.
So please try to clear your browser’s cache and try again.
And do you get any errors? If not, you can only use FRT to view detailed messages.
Upvotes: 0