My www.XXXX is getting error 301 redirect in wordpress

Oluwaseun Osinuga 1 Reputation point
2020-12-18T07:48:21.623+00:00

I have a WordPress site hosted on azure but recently when I visit the www.XXXX I am getting 301 redirect error. But when i access the naked domain it works fine.

I bought an Azure App service certicate that is linked to both subdomain and naked domain, DNS records also looks fine. I don't understand why all of a sudden www subdomain keeps getting 301 redirects

Kindly assist.

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,598 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nasser Mouawad 1 Reputation point
    2022-08-11T16:29:41.47+00:00

    In the Azure portal, from the left menu, select App Services > <app-name>. From the left navigation of your app, select TLS/SSL settings > Private Key Certificates (.pfx) > Create App Service Managed Certificate. Select the custom domain to create a free certificate for and select Create.