HTTP not redirected to HTTPS

Lewis Zwart 26 Reputation points
2021-01-11T13:45:18.777+00:00

Hi!

I am trying to add SLL bindings to my Azure web app. It's linked to a custom domain. The SLL certificate works, i.e. I see the lock icon when I navigate to https://mydomain.com. However, if I use mydomain.com or http://mydomain.com, I stay on the http version of the website.

As I understood from the documentation, setting HTTPS Only to "On" would automatically redirect HTTP requests:

55425-azure-https.png

However, it still doesn't redirect to HTTPS. Is there any additional action I should take or was this supposed to be sufficient?

Thanks a lot!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,347 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andriy Bilous 11,631 Reputation points MVP
    2021-01-11T15:12:29.433+00:00

    Hello @Lewis Zwart
    You are right, HTTPS Only option set to "On" would automatically redirect HTTP requests to HTTPS
    https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-bindings#enforce-https

    You should also enable HTTPS Only option in App Service - Custom Domains tab to enable HTTPS redirection for your domain
    https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain

    55408-image.png


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.