I've installed Umbraco 7.
Created 4 websites with different domains.
Set the domains under culture and host option.
Everything seems to be working but what I want to achieve is to redirect each of the 4 sites from the domain name to it's equivalent Https domain name for each of the sites.
I've added 8 bindings to my IIS project in the format
Domain.com
www.domain.com
So far if I type the domain name as it is, it's fine but after reading around I want to redirect each domain from domain.com to Https://www.domain.com
I would like to do this through the IIS web.config file.
I've checked a lot of articles but I can't find s good example to follow.
Could someone kindly give me some straight forward examples so I can try this out please.
Oh great!! So to confirm. I have culture and hosts of 4 different sites set as
mydomain.com
www.mydomain.com
mydomain2.com
www.mydomain2.com
And the same for the other Umbraco sites under one CMS.
Adding the above IIS rule would redirect each site to httpS://www.mydomain.com (note the S in http) where mydomain.com is replaced with the respective domain name set under cultures?
Umbraco should take care of your domains routing for different cultures.
But if you have one or more domains that should redirect to another domain, then you can't use this. Like if domain1.com should redirect to domain3.com.
Hello with redirecting multiple sites
Hi all
I've installed Umbraco 7. Created 4 websites with different domains. Set the domains under culture and host option.
Everything seems to be working but what I want to achieve is to redirect each of the 4 sites from the domain name to it's equivalent Https domain name for each of the sites.
I've added 8 bindings to my IIS project in the format
Domain.com
www.domain.com
So far if I type the domain name as it is, it's fine but after reading around I want to redirect each domain from domain.com to Https://www.domain.com
I would like to do this through the IIS web.config file.
I've checked a lot of articles but I can't find s good example to follow.
Could someone kindly give me some straight forward examples so I can try this out please.
Hi Jerome.
Maybe you can use this
Hi Bo
I'll try this out. I mentioned I have 4 sites.
Do I just replace CacheUrl with the site name minus www so it knows which site to redirect to which Https? As in copy the rules 4 times?
Many thanks
What Bo sent you will redirect all incoming traffic to https, should take care of all of your domains in one swoop.
Oh great!! So to confirm. I have culture and hosts of 4 different sites set as
mydomain.com
www.mydomain.com
mydomain2.com
www.mydomain2.com
And the same for the other Umbraco sites under one CMS.
Adding the above IIS rule would redirect each site to httpS://www.mydomain.com (note the S in http) where mydomain.com is replaced with the respective domain name set under cultures?
Thank you all
Hi Jerome.
ensure www, should redirect which ever domain to use www. Like http://domain.com to http://www.domain.com.
http to https, should redirect which ever domain to use https. Like http://www.domain.com to https://www.domain.com.
Umbraco should take care of your domains routing for different cultures.
But if you have one or more domains that should redirect to another domain, then you can't use this. Like if domain1.com should redirect to domain3.com.
is working on a reply...