How do I fix the error 404 message when trying to set up the Wordpress migration to Azure?

Rod Price 20 Reputation points
2025-03-02T21:21:19.5833333+00:00

I have been attempting to set up the Wordpress database in Azure. I think I've tried everything 4 times including recoding bash files. I am not a programmer but bootstrapping this myself. Any help or thoughts on this?

Azure SQL Database
{count} votes

Accepted answer
  1. Bhargavi Naragani 1,370 Reputation points Microsoft External Staff
    2025-03-06T00:20:34.12+00:00

    Hi @Rod Price,

    Check your domain’s DNS configuration on GoDaddy, when you connect your domain to the new Azure resource, ensure that your domain’s A or CNAME records are updated to point to your Azure App Service. An incorrect DNS setting could mean your domain is still trying to reach your old hosting environment, leading to access problems.

    The database migration might have introduced discrepancies, especially if the siteurl and home values in the wp_options table still reference your old domain. Make sure you update these entries to reflect your new Azure-hosted domain. In addition, verify that all WordPress files—plugins, themes, and media uploads—were transferred correctly. A missing or corrupted file could cause the site to fail during startup, resulting in a blank page or 404 errors.

    Server-side configuration issues can play a role. Since you initially encountered issues with PHP and Nginx, confirm that your Azure App Service environment is properly configured to handle PHP requests and the necessary rewrite rules. This includes checking that the startup commands are set to load the built-in Nginx and PHP-FPM processes, as well as ensuring that the rewrite rules (in your Nginx configuration or WordPress permalink settings) are correctly directing requests to the proper PHP handlers.

    Reviewing the logs in Azure’s Logfiles directory may reveal hidden errors that can guide further troubleshooting.

    https://learn.microsoft.com/en-us/azure/app-service/quickstart-wordpress

    https://learn.microsoft.com/en-us/azure/app-service/migrate-wordpress

    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.

    Let me know if you have any further Queries.


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.