Change WordPress URLs Safely

Change WordPress URLs Safely

[ad_1]

The decision to change your WordPress site URL should not be taken lightly. Because domain names help with brand recognition. People are used to a particular area when it comes to your content.

The following cases occur:

  • Completely moved to a new domain
  • Increase security by adding SSL/HTTPS certificates
  • Move content into subfolders

How to change WordPress URL in any of the above cases:

1. Change the URL in the WordPress Dashboard:

WordPress address is the main address of the site/blog.

Site address is the address at which the site’s web hosting files are accessible.

2. Using the wp-config.php File

Paste the following code at the top of the file. Note: Correct your site URL.

define('WP_HOME','https://hocwordpress.vn/');
define('WP_SITEURL','https://hocwordpress.vn/');

If these lines are already in the wp-config.php file, you just need to modify them.

3. Change WordPress URL Using Database

Go to phpMyAdmin and select your website database from the list on the left side. Find a table wp_options.

In this table you will need to enter a new one for the 2 options siteurl and home .

All you have to do is select these values ​​and enter new values. Hurry Go save.

Epilogue

With just the simple code above, you can change your WordPress URL without losing SEO

If you find it interesting, you can follow the wordpress tips section to learn more new knowledge.

Follow the fanpage to receive the latest articles: Hocwordpress Group

I wish you to have interesting and interesting knowledge about wordpress!

first
first
vote

Rate items



[ad_2]

Recommended Posts