Let’s Talk

We would love to hear from you. Want to know more about
our services or have any questions? Say Hi!

Redirect HTTP to HTTPS in Azure app service on the Sitecore website

November 18, 2022
Redirect HTTP to HTTPS in Azure app service on the Sitecore website
Keyur Garala
Keyur Garala
Sitecore Certified Solutions Architect
redirect-http-to-https-in-azure-app-service-on-sitecore-website

One of our Sitecore websites is being run on Azure App Services. As its on HTTPS, whenever the users try to access it using the HTTP protocol, they get a permission error. So, how can you redirect from http: // www . demowebsite. com to https: // www. demowebsite . com?

redirect-http-to-https-in-azure-app-service-on-sitecore-website-1

Please follow the below steps in your Azure portal:

  • Login to Azure
  • Open your resource group such as dev or production
  • Open your Sitecore Azure App Service, its name should be "sitecoredemo10-123456-single" or something similar to it. (You can refer to the below image for reference)
redirect-http-to-https-in-azure-app-service-on-sitecore-website-2
  • Search the “Custom Domain” keyword in the left panel and select it.
  • In this, you will see “HTTPS ONLY” option. Turn it on as given in the below image.
redirect-http-to-https-in-azure-app-service-on-sitecore-website-3

This will take a few seconds but once it is done, and the changes are saved successfully, your http: // www . demowebsite. com should easily redirect to https: // www. demowebsite . com


YOU MAY ALSO LIKE