Azure App Service Deployment slot URL redirects to WWW and it does not load

SilvaPaulaD 56 Reputation points
2023-02-23T13:11:23.08+00:00

Good morning; I have an app service, and the default azure URL redirect to www.defaultazureurl.com. Because of that redirect, the site never loads. I cannot find where the redirect is coming from or why it is doing that. Any help will be greatly appreciated to it.

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

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,676 Reputation points Microsoft Employee
    2023-02-24T02:13:43.6233333+00:00

    @SilvaPaulaD We have a few scoping questions:

    1. Has the deployment slot and its respective URL ever worked for you?
    2. Do you have any services in front of your web app? Such as an App Gateway or Azure Front Door? If so, make sure your gateway is not configured to override the hostname. Further, you can try to see if your app has a www custom domain prefix.
    3. Go to the App Service in the Azure portal.
    4. Select the "Custom domains" option.
    5. Check if there is a custom domain with a "www" prefix. If so, remove it.
    6. Check if there is a redirect rule that is redirecting the root domain to the "www" subdomain. If so, remove it.

    Note that this might change the behavior of your custom domain so perform these troubleshooting steps during slower hours for your site.

    Let us know the outcome of these suggestions and if any resolved the issue. We look forward to your reply.


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.