Question

How come going to my domain redirects to my ip address?

I installed Wordpress onto Ubuntu 16.04, and have connected the name servers to name cheap and everything, which all seems to be done correctly. Whenever I connect to my website, it redirects to the IP address. What should I do to fix this?


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @theisevan

You probably setup WordPress on the IP-address before you added the domain, which means WordPress will save that IP as the root configuration.

You can go to http://162.243.40.146/wp-admin/options-general.php and edit both WordPress Address (URL) and Site Address (URL) to http://www.evansdetailing.com