Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Redirection from "https://www" to "https://"

$
0
0

Hi,

We have the ASP.NET application hosted as Azure WebApp and configured the domain from GoDaddy. 

We bought SSL for non-www domain, but want redirection from https://www to https://

I am getting certificate error for https://www now. We used the following redirection rule:

<rewrite>
<rules>
<rule name="Redirect to ABC">
<match url="(.*)"/>
<conditions>
<add input="{HTTP_HOST}" pattern="^(?!^ABC.com)" />
</conditions>
<action type="Redirect" url="https://ABC.com/{R:1}"/>
</rule>

<rule name="Redirect to https">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="Off"/>
<add input="{REQUEST_METHOD}" pattern="^get$|^head$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}"/>
</rule>
</rules>
</rewrite>

Is there a way to add another rule to redirect request to "https://www" to "https://", without buying SSL exclusively for "www"?

Thanks,

Jay


Viewing all articles
Browse latest Browse all 780

Trending Articles



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