Wrong domain entered - how can it get corrected?

August 16, 2013 1.1k views
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.
3 Answers
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 (see How to Install and Secure phpMyAdmin on Ubuntu 12.04) and editing two table entries in MySQL: (i) siteurl and (ii) home.

On the other hand, you can read about 'the faster' way, here: Changing The Site URL | WordPress Codex.
by Etel Sverdlov
This tutorial covers installing phpMyAdmin on a LAMP stack. Additionally it includes the steps on how to secure it with the .htaccess file. phpMyAdmin is an free web software to work with MySQL on the web—it provides a convenient visual front end to the MySQL capabilities.
Edit wp-config.php and add these two lines at the very bottom of the file:



(replace example.com with your domain)
Have another answer? Share your knowledge.