I am trying to redirect the user to https:\\www.sctflash.com for example, but when I type in www.sctflash.com, it does not or when I type in http:\\www.sctflash.com, it doesn't either. I thought adding making the destination url "https://www.sctflash.com/$1" would work, but it doesn't?
Changing it to the following works, but why, also will these still put www in front of non-www urls:
UrlRewriting.config not redirecting to from http to https
I have the following rules in my
UrlRewriting.config
:I am trying to redirect the user to
https:\\www.sctflash.com
for example, but when I type inwww.sctflash.com
, it does not or when I type inhttp:\\www.sctflash.com
, it doesn't either. I thought adding making the destination url"https://www.sctflash.com/$1"
would work, but it doesn't?Changing it to the following works, but why, also will these still put www in front of non-www urls:
destinationUrl="https://$1" redirect="Domain" redirectMode="Permanent" ignoreCase="true" />
Do I also have to change the cultures and hostnames to from
http:\\www.sctflash.com
tohttps:\\www.sctflash.com
?Looks like changing my desintationUrl does not rewrite to www, but it does https. How can I keep both?
Not sure if this is the right way, but I ended up using 2 rules, one to rewrite to www and the other to rewrite to https:
is working on a reply...