![]() 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. In the admin menu, go to Settings > General to access the general settings screen. If you are moving your WordPress website's location, then you can simply update the database to use your new URL. Change WordPress URL via the Admin Dashboard The first and most common method is to change your WordPress URL directly from within the admin dashboard. 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. 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. ** 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: 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. 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 |