I have a standard http to https redirect as the third rule in my config.web:
<rule name="Roll To HTTPS" stopProcessing="true">
<match url="(.*)example.aspx(.*)|application(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://mydomain.com/{R:0}" />
</rule>
and a reverse proxy rule later in the config:
<rule name="application rule" stopProcessing="true">
<match url="^application(.*)" />
<action type="Rewrite" url="https://internal01.mydomain.com/{R:0}" logRewrittenUrl="true" />
</rule>
My problem is that a web request for http://mydomain.org/articles/blog/04/article-about-application
is redirecting to http://mydomain.com/applicationinstead of https://mydomain.com/articles/blog/04/article-about-application.
Why is the https rewrite rule not working for this particular request? Anything I have in my articles folder (and subfolders) is being similarly redirected if it contains the word "application" anywhere in the title.