Can I change the URL of my WordPress blog afterwards?
You can change the URL of your WordPress blog afterwards, but the function is somewhat hidden. In this tip you will read how to do it.
Change the URL of the WordPress blog later
How to change the URL of your blog using the admin panel:
- Go to the blog's admin panel.
- Navigate to "Settings" -> "General".
- Under "WordPress address (URL)" and "Blog address (URL)" you can now enter the new address of the blog.
But be careful, if you make a mistake or enter an invalid address, you can no longer access your blog! In this case you have to change the address via an entry in wp-config.php.
Change URL via PHP file
If you can no longer access the blog after changing the URLs, you must enter the address manually in wp-config.php:
- Download the wp-config.php from the root directory of the WordPress installation and open it with a text editor, for example with Notepad ++.
- Add the commands "define ('WP_SITEURL', 'new address'); define ('WP_HOME', 'new address');" anywhere, but not at the very beginning or end of the file.
- Save the file and upload it again.
More tips about Wordpress can be found here.