Rename or move my WordPress

Rename or move my WordPress

From ThaiiS Note (Wiki)

Jump to: navigation, search

Because of the potential problems that could consequently affect your blog, we strongly recommend that you do not move or rename your WordPress installation files.

If you do find that you need to move or rename your WordPress files, be sure to follow the steps below.

Contents

Renaming

If you want to rename the folder in which you have installed WordPress:

  1. sign in to your blog
  2. In the navigation bar at the top of your administration console, click "Options," then "General."
  3. In the "WordPress address (URI)" field, enter the web address of your new blog location. If you intend to rename the directory blog as wordpress, for example, you'd enter the web address of the new directory minus the www, like this: http://widgetdesigns.com/wordpress/.
  4. In the "Blog address (URI)" field, enter the same new location, like this: http://widgetdesigns.com/wordpress/. Your entry here should match WordPress address (URI).
  5. Click "Update Options." Note that you will see a 404 error on the page. You can ignore this error for now. (Please be aware as well that your blog will also become temporarily unavailable.)
  6. Now you're ready to rename your WordPress installation folder (from blog to wordpress, for example).
  7. After you rename your folder, you should be able to view your blog once again.
  8. Update your management links with the new path to your administration pages. [wordpress-07.html#change Learn how.] This step is required if you still want to use Blog Manager to access your blog tools, or you want to use permalinks

Moving

If you want to move your WordPress files to another directory:

  1. If you want to move your files, you'll first need to create your new directory and copy all of your existing WordPress files (including subfolders) into the new directory, making a duplicate of your original directory contents.
  2. Sign in to your blog
  3. In the navigation bar at the top of your administration console, click "Options," then "General."
  4. In the "WordPress address (URI)" field, enter the web address of your new blog location. If you intend to move your WordPress files from the directory blog into a new directory called wordpress, for example, you'd enter the web address of the new directory minus the www, like this: http://widgetdesigns.com/wordpress/.
  5. In the "Blog address (URI)" field, enter the same new location, like this: http://widgetdesigns.com/wordpress/. Your entry here should match WordPress address (URI).
  6. Click "Update Options." You should be able to view your blog now at its new location. (After you've confirmed that your blog functions properly at its new location, you may remove your original set of WordPress files.)
  7. Update your management links with the new path to your WordPress control panel. This step is required if you still want to use Blog Manager to access your blog tools, or you want to use permalinks

Your Home Page

If your WordPress blog is the home page of your site, and you move or rename your WordPress installation folder, you'll need to update your home page file to reference the new location of your WordPress files.

  1. In your [../gfiles/ File Manager], locate a file called index.php in your main site directory.

  2. Click the Edit icon Image:doc_edit.gif to the right of the file name to open index.php in the PHP Editor.

  3. In the editing field, locate a line of code that looks like this: require('.//blog1/wp-blog-header.php'); This line of code refers to the location of your WordPress files. In order for your home page to display your blog properly, you'll need to update this code to refer to your new WordPress location.

  4. Change the path to reference your new WordPress folder location. For example, if you moved your WordPress files from the directory blog1 into a new directory called wordpress, you'd change this line to: require('.//wordpress/wp-blog-header.php');
  5. Click "Save and Continue" to save your changes.

Permalinks

If you are using permalinks, you'll need to update your permalinks structure after moving or renaming your blog files.

  1. Visit your WordPress control panel. (Note that you'll need to access your console using the new path you created. For example, if you renamed your WordPress folder from blog to wordpress, instead of accessing your console at http://widgetdesigns.com/blog/wp-admin/, you'll sign in at http://widgetdesigns.com/wordpress/wp-admin/.)
  2. In the navigation bar at the top of your administration console, click "Options," then "Permalinks."
  3. Here you can update your permalink structure based on your new blog location (click the "Update Permalink Structure" button to save your changes).

Remember that after you move or rename your blog files, previously saved links and permalinks to your blog will no longer function.

Important: Please note that you must update your URI locations on the WordPress control panel before renaming or moving your installation directory, or you may find that you can no longer access your blog or blog control panel.