How to change WordPress URL? It's very easy if you wanna change the URL of your homepage in WordPress blog or if you wanna change the Admin Page with another. Now I want to tell you about how to change the WordPress URL with a new one. This often we need when we change the domain, etc.
Here are the steps to change WordPress Blog URL manually:
Or edit file functions.php with adding the codes below:
Put those lines under the sign "<?php" so it will seems like this:
Here are the steps to change WordPress Blog URL manually:
- Login to your FTP account or from cPanel then open File Manager.
- Please, choose one or all of these st
- Search wp-config.php file, then edit that file and add the codes below:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog');
<?php
update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog');
Hopefully useful
No comments:
Post a Comment