Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

IIS rewrite to https ignored with wildcard pattern?

$
0
0

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.


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>