One Click Wordpress Site showing IP address instead of domain name
Hi there, I've recently relocated my Wordpress site from IONOS to a One-Click app on Linode. I've managed all the DNS set and when hitting my Wordpress site using my domain it's all working fine, except the Home page - clicking on the home page on my site changes the URL back to the IP address of the Linode running Wordpress. I've made sure that WordPress knows about the site URL, etc but it's still happening, any ideas anyone ?
Thanks !
1 Reply
It sounds like you may have checked this already, but did you update your WordPress general settings? You check that by opening WordPress (as admin), then Settings -> General. There you'll see two fields:
WordPress Address (URL)
Site Address (URL)
Change both of those to your domain instead of the site's IP address and hit submit at the bottom of the page. If the domain is already listed there then you'll want to make this change manually in wp-config.php.
First open the configuration file:
/var/www/html/Your_site.com/public_html/wp-config.php
Then add the following:
define('WP_SITEURL', 'http://your_site.com');
define('WP_HOME', 'http://your_site.com');
There are a few more suggestions in the WP codex as well:
https://wordpress.org/support/article/changing-the-site-url/
If you still have issues after saving those changes and doing a hard refresh in your browser then that likely means your theme has a custom menu causing this. WordPress has their own detailed documentation on making menu changes here: