Can't access wordpress site after changing domain


My one-click Wordpress droplet worked just fine until I changed the domain name :

I built my website using just the IPV4 for a while, then I bought a domain name from Namecheap and followed the instructions Custom DNS on Namecheap + (A,A,NS) on DigitalOcean. I read that it took time for it to work so I waited 24 hours. The next day I go to my wordpress > settings > general and change the url to to the new domain name I bought.

Now I get “This page isn’t working [url] is currently unable to handle this request.” in both my domain name and the droplet’s IPV4.

I tried to edit wp-config.php

define( 'WP_HOME', '' );
define( 'WP_SITEURL', '' );

but it didn’t work, either with my new namecheap domain and even with my IPV4.

I also read that I should change something in phpMyAdmin but I have no idea how to do that.

Please help me fix my problem, Thanks.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey friend,

You may need to make sure that the values actually updated in the wp_options table in the database. I found this guide that can help you do that via command line (as opposed to phpmyadmin, an unnecessary application that others will suggest to you):

I will add, though, that this can be set correctly and still not fix it. Wordpress allows users to install plugins that change anything about how the application functions, anything desired by the plugin developer. This can mean that your site URL is further embedded in configurations that no one can reasonably assume to give advice on.

If it comes down to worst case scenario, perhaps export the XML data from the Wordpress installation, install a fresh copy on a new server, and import the XML while also copying over the wp-content folder. This may be a shortcut.