I want to add a rewrite rule to urlrewriting.config that would redirect bigrig.bullydog.com to https://bigrig.bullydog.com or if the user happened to type http:\\bigrig.bullydog.com, it would redirect to https://bigrig.bullydog.com. How can I write this rule using UrlRewriting.NET to handle various subdomains?
Redirect subdomain to https with no www?
I want to add a rewrite rule to urlrewriting.config that would redirect
bigrig.bullydog.com
tohttps://bigrig.bullydog.com
or if the user happened to typehttp:\\bigrig.bullydog.com
, it would redirect tohttps://bigrig.bullydog.com
. How can I write this rule using UrlRewriting.NET to handle various subdomains?Hi Saied,
Perhaps you can get some inspiration how to solve your task
http://madskristensen.net/post/url-rewrite-and-the-www-subdomain
Hope this helps,
/Dennis
is working on a reply...