Question

Wrong domain entered - how can it get corrected?

Posted August 16, 2013 1.8k 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.

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.

×
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:

define('WP_HOME','http://example.com');

define('WP_SITEURL','http://example.com');


(replace example.com with your domain)
Submit an Answer