Firstly it’s worth noting that once you change your WordPress site URL the old one will stop working. Visitors will not be forwarded to the new site address unless you add web forwarding against the previous domain name.
3 Easy Ways to Change your WordPress Site URL…
Through the Admin Dashboard
The most common and simplest way to change your WordPress site URL is from the admin dashboard after logging in at wp-admin. On the left hand menu you should navigate to Settings > General. On the page that loads you will be presented with your Site Title, Tagline and then WordPress Address (URL) & Site Address (URL). You should change the address entered in these boxes and hit Save to complete the change of WordPress Site URL.
Once saved you may need to clear your cache otherwise you may encounter a redirect error.
By editing your WP Config File
Another option is to access your WP Config file and make the change there.
The file should be located within the directory of your WordPress site and can be accessed via FTP or via File Manager within cPanel. To hard code the WP_HOME and WP_SITEURL, add the following code towards the top of the file, changing ‘yourdomain.com’ to reflect your domain name:
define('WP_HOME','https://yourdomain.com');
define('WP_SITEURL','https://yourdomain.com');
Using this method will make option 1 unavailable through your WP Admin dashboard.
Through the Database via PHPMyAdmin
Another option available to change your WordPress Site URL is via PHPMyadmin which is located on your cPanel home page.
Once you have opened phpMyAdmin, click on your database from the left-hand menu, scroll down and click on ‘wpbr_options’. This opens up a section which includes ‘siteurl’ and ‘home’. It is these value that you should edit in order to change the WordPress Site URL …
Finally, we have a number of other articles written around the WordPress Content Management system which you may find useful on our blog…
Did you know…
At Clook, one of our specialisms is providing WordPress hosting, if you’d like to find out more, please get in touch with us.