Hi,
I wann redirect the url from https://www.subdomain.domain.com or www.subdomain.domain.com to https://www.subdomain.domain.com. When user enter the URL with "www" its showing 'privacy error' and i had purchased the wildcard ssl certificate. and also wriitten code in web.config file:
- <rewrite>
- <rule name="Remove WWW and Ensure HTTPS" stopProcessing="false">
- <match url="^(.*)$" />
- <conditions logicalGrouping="MatchAny">
- <add input="{HTTP_HOST}" pattern="^(www\.)" />
- <add input="{HTTPS_HOST}" pattern="^https://www\.(.*)\.(.*)\.(.*)$" />
- <add input="{HTTPS}" pattern="^OFF$" />
- conditions>
- <serverVariables />
- <action type="Redirect" url="https://{HTTPS_HOST}{REQUEST_URI}" />
- rule>
- rules>
- rewrite>
Thanks in Advance

Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 10, 2017, 9:36 AM EDT
ib belladRank #4,317 · 351 reputationPosted Aug 10, 2017, 9:06 PM EDT