How to stop default .azurewebsites.net domain from being indexed and appearing on Google search

V. Shatalov 5 Reputation points
2023-06-25T14:30:03.7033333+00:00

Publicly available Wordpress website has been deployed to Azure using WordPress on AppService. After adding custom domain everything is OK except default domain site.azurewebsites.net also appears in Google search.

This is Linux/nginx container (see WordPress on AppService on marketplace).

I set rewrite rules in nginx config file server section but it didn't help. Default Azure domain still appears on Google search.

Any help how to remove defaut Azure domain from Google indexing is much apreciated.

PS: not a Linux/nginx expert. Please provide detailed explanation where and how if any

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-06-27T09:17:16.3933333+00:00

    @Anonymous Thanks for reaching here! Could you please confirm if you have changed your my site address from mydomain.azurewebsites.net to mydomain.com. from the Wordpress settings?

    See-

    User's image

    Let us know.

    1 person found this answer helpful.
    0 comments No comments

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.