0
votes

I deployed my Umbraco 8 website to an Azure app service, created a CDN for the app service and configured the custom domain for the CDN.

enter image description here

In my domain provider (OVH) I added a CNAME for my domain so the Azure CDN could pass the verification. enter image description here

My problem is that if go to a browser and type "https://www.culturaenvivo.com" everything works as expected. But if I type "www.culturaenvivo.com" the URL changes to the app service (cev.azurewebsites.net).

My CDN Origin configuration has both protocols configured. enter image description here

What am I missing? Why is the URL changing to azurewebsites.net?

UPDATE: I added a rule engine in my Azure CDN to redirect from http to https but it doesn't seem to work either.

2
I just tried to input www.culturaenvivo.com at the address in a browser. It worked and redirect to https://www.culturaenvivo.com, so does this issue fix on your side now?Nancy Xiong
If you try http ://www.culturaenvivo.com you can see it sends you to https ://cev.azurewebsites.net/, which is my azure app service. Note: Sorry for the extra whitespace in http but Stackoverflow formats the URL.Dani Pazos

2 Answers

1
votes

I tried and found that the HTTP redirect to HTTPS worked. When I input the http://www.culturaenvivo.com in the browser address bar, it always redirect to https://www.culturaenvivo.com.

www.culturaenvivo.com

If this is what you expect in your browser, you could try to new inPrivate windows to open your websites or clear the browser cache or clear DNS cache or restart your machine to see if it helps.

To configure Azure CDN HTTP-HTTPS redirection, you could read this blog. For example, if you are using the Standard Microsoft CDN price tier, you can simply add a new rule as follows on the Azure portal.

enter image description here

0
votes

It redirects from http to https now.

I added a .htacces file to my root folder with the following content

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.culturaenvivo.com/$1 [R,L]