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
ib belladPosted Aug 11, 2017, 1:06 AM
Gokhul VarmanPosted Aug 10, 2017, 1:36 PM