Report this

What is the reason for this report?

Wrong domain entered - how can it get corrected?

Posted on August 16, 2013

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.



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!

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.

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

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>.

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)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.