By ensignyc1989
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!
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)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.