WordPress and GoDaddy problem Domain and Url

Hi everyone. I installed WordPress in Ubuntu, and I have a domain i want to use with the WordPress Droplet, I put the DNS configuration (AAA, A, CNAME) like the config tutorial everything works fine, in GoDaddy I point to my DO servers, everything is fine… But, when I go to the domain url it shows the page but changes my domain URL to the droplet IP URL. Like redirects the DOMAIN to the IP and the URL changes from to the IP droplet.

I see many post of this problem here, so, i change the URL Settings in WordPress Dashboard (only the homepage URL) to, it loads perfect but fonts icons are not loading correctly and when I try to go the WordPress admin panel, I can’t, so I inspect with JS the url and seems like is redirecting to the URL and not the droplet (where are all the files) and loops, so I change the URL in the JS inspector and put the Droplet IP. In the inspector, doing this i can enter, and I was be able to edit the URL Settings in WordPress Dashboard and put the older (IP Droplet Adress) instead the domain…

My question is… How I can have this working? I have to put in both of Settings URL of WordPress Dashboard and will work fine? Or the pages will crash? This is a Apache problem config? Please… I will appreciate any help, I have days in this problem…

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.


When you first install WordPress, it uses whatever hostname or IP is used to access the installer. So if you used an IP to install WordPress, then the IP is used as your sites URL.

You can modify ./wp-config.php and within it, add:


… save the file, upload it, and then refresh the page and that should set your URL to your domain without any further changes needed. Simply change to your actual domain.


If this icon set is specific to the theme, you may need to deactivate it and then reactivate it and see if that works. By default, if a theme is coded properly, it should be able to use whatever WordPress has set as the URL, whether it’s an IP or domain name.

The exception to this, of course, would be if you hard-coded the IP in to your stylesheet, in which case you’d need to modify your stylesheet and update the URL(s).

@jtittle , Sorry! It works! Thank you very much!!! Now I can see my domain and login to WordPress without problems. But… the icons fonts for the theme loads by the IP adress and throws an JavaScript problem, this not show the font icons. What you think is the problem here? Is something in the theme url or?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel