Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
I have hostnames in the same umbraco cloud install.
Two of those hostnames are https.
I have added the following rewrite rule in the web.config file.
How do I exclude on of my hostnames from the rewrite rule?
Thanks
Martin
<rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> <add input="{HTTP_HOST}" pattern="localhost" negate="true" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" /> </rule> </rules> </rewrite>
Hi Martin,
You can do something like this:
<conditions trackAllCaptures="false"> <add input="{HTTP_HOST}" pattern="*.domain1.com" /> <add input="{HTTP_HOST}" pattern="*.domain2.com" /> </conditions>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Rewrite Rule - Exclude Hostname
Hi All,
I have hostnames in the same umbraco cloud install.
Two of those hostnames are https.
I have added the following rewrite rule in the web.config file.
How do I exclude on of my hostnames from the rewrite rule?
Thanks
Martin
Hi Martin,
You can do something like this:
is working on a reply...