Out of the box, UrlRewrite can only do rewrites to the same page, like this:
<rule name="Rewrite to article.aspx"> <match url="^article/([0-9]+)/([_0-9a-z-]+)" /> <action type="Rewrite" url="article.aspx?id=&title=" /> </rule>
It seems you are trying to do a rewrite to entirely another site on another domain and possibly do ssl offloading - this is what Reverse Proxy does. For this to work, you have to have Application Request Routing installed.
What I would do to debug this config is:
- Replace rewrite action with a redirect and see if it works - this way you make sure that the rule gets applied for your request.
- If all you're trying to do is a rewrite within your site, change the rewrite url to a relative one.
- If you indeed need to do a rewrite to a different site, install and configure ARR (which itself can bring another set of problems)