This has been working well but then i need to change this to HTTPS but it still shows the http version on some occasions (i realised this after clearing my browser) for example if i enter site1.com then it goes to http://site1.com instead of httpS://www.site1.com.
Im about to try this out but my initial attempt didnt work (I tried modifying my config), so now i will copy it across. Just in case this changes the above but the second site should not be https
I copied/pasted the code above and changed the site name and it doesnt work. It throws an error 500, removing the second rule (redirect to http) stops the error but site 2 doesnt work at all :-(
Edit: Getting a little further and i have the redirect working to https but when i type site1.com then it goes to http, Going to www.site1.com then redirects to https which is fine.
Redirect to https for one site
I used this article to have two sites in Umbraco and then configure IIS to do two redirects (site1 to www.site1.com and site2 to www.site2.com).
https://weblogs.asp.net/owscott/iis-url-rewrite-rewriting-non-www-to-www
This has been working well but then i need to change this to HTTPS but it still shows the http version on some occasions (i realised this after clearing my browser) for example if i enter site1.com then it goes to http://site1.com instead of httpS://www.site1.com.
How could i achieve this?
Hi J
Try this configuration for redirects:
Im about to try this out but my initial attempt didnt work (I tried modifying my config), so now i will copy it across. Just in case this changes the above but the second site should not be https
Just edited the config changes, now it shouldn't redirect site2 to https
I copied/pasted the code above and changed the site name and it doesnt work. It throws an error 500, removing the second rule (redirect to http) stops the error but site 2 doesnt work at all :-(
Edit: Getting a little further and i have the redirect working to https but when i type site1.com then it goes to http, Going to www.site1.com then redirects to https which is fine.
Following this i will look into site 2
is working on a reply...