![]() ![]() This will update the WordPress Site and Home URL to use the new URL for your website. If you have already moved the site files to the new location, follow the steps below to modify the database. If you are moving your WordPress website's location, then you can simply update the database to use your new URL. Press Ctrl + O (on Mac press Command + O), hit enter to confirm to save the changes to the named file (wp-config.php).įinally, press Ctrl + X (on Mac press Command + X) to exit nano. ** Changes Site and Home URL for WordPress configuration **/īe sure to modify the highlighted portion of the code to the actual URL you will use. ** The name of the database for WordPress */Ībove that code, enter the following code: ** MySQL settings - You can get this info from your web host ** // Once the file opens, locate the beginning of the MySQL settings code, it looks similar to: Aug65 Comments After migrating a WordPress site to a new URL either to a live production site or a testing development server, the new URL strings in the MySQL database need to be changed and updated in the various MySQL database tables. Run the following command to open the file for editing: Navigate to the website's new document root directory using the following command:īe sure to replace the highlighted portion of that command with the actual user and new location of the WordPress files. A tutorial showing how you can change the URL of your WordPress site directly from the database (MySQL)Visit our site for more tutorials like this:http://www. ![]() Open your favorite SSH Client and connect to the server ( how to SSH with Mac) where you have moved the website files to. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |