Question

Wrong domain entered - how can it get corrected?

Hi I have mistakenly added .ok instead of .uk for my domain in Wordpress Dashboard --> Settings against URL and URI fields.

Would anyone know how I can correct the domain by editing an OS file? I’m on Ubuntu.

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.

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.

Edit wp-config.php and add these two lines at the very bottom of the file: <br> <br><pre>define(‘WP_HOME’,‘http://example.com’); <br>define(‘WP_SITEURL’,‘http://example.com’);</pre> <br> <br>(replace example.com with your domain)

There are two ways to go about it, depending on your comfort level w/the command line. The easier – but longer, and, arguably, less secure – way is by installing phpMyAdmin (<i>see</i> <a href=“https://www.digitalocean.com/community/articles/how-to-install-and-secure-phpmyadmin-on-ubuntu-12-04”>How to Install and Secure phpMyAdmin on Ubuntu 12.04</a>) and editing two table entries in MySQL: (i) siteurl and (ii) home. <br> <br>On the other hand, you can read about ‘the faster’ way, here: <a href=“http://codex.wordpress.org/Changing_The_Site_URL”>Changing The Site URL | WordPress Codex</a>.

i have tried http://<IP-Address/wp-admin but that resolves to the wrong domain name with .uk extension.