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

Redirect specific site to HTTPS & Non-standard port

$
0
0

I'm pretty new to IIS (We are using IIS on Server 2016) and I'm trying to redirect a specific site from HTTP to HTTPS and change the port to a non standard port.  I'm having problems doing this, currently this is what I have it and I'm having problems with it.

<rules>
<rule name="HTTP to HTTPS" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
<match url="(.*)pw(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
<add input="{HTTP_HOST}" pattern="pw.1site.com" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}:9119" appendQueryString="false" />
</rule>
</rules>

Thanks in advance for any help.


Viewing all articles
Browse latest Browse all 2482

Trending Articles



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