Search Help

Rename or move my WordPress files

If you need to move or rename your WordPress files, we've got you covered below.

 Caution: As there is risk of related errors, we recommend that you avoid moving or renaming your WordPress files. If you’re interested, visit our article discussing these possibilities.

Rename your files

  1. Sign in to your blog.
  2. Click Settings | General.
  3. Enter the URL of your new blog location in the address (URL) field.

      Tip: For example, if you wanted to rename the directory blog as wordpress, you'd enter the URL of the new directory minus the www: http://widgetdesigns.com/wordpress/.

  4. Click Save Changes.

      Note: Following changes, your blog will become temporarily unavailable. For now, you can ignore the 404 error that appears.

  5. Now, you can rename your installation folder.
    1. If you’d like instructions, check out our article on remaining WordPress folders.
    2. Still want to use Blog Manager to access your blog tools, or you want to use permalinks? Update your management links with the new path to your admin pages. 

Move your files to another directory

  1. Create your new directory.
  2. Copy all existing files into the new directory.
  3. Sign in to your blog.
  4. Select Settings | General.
  5. Enter the URL of your new blog location in the URL field.
  6. Enter the new location, like this: http://widgetdesigns.com/wordpress/. Your entry here should match the URL field.
  7. Click Save Changes.
  8. Remove your original set of files after you confirm that your blog is working at its new location.
  9. Still want to use Blog Manager to access your blog tools, or you want to use permalinks or receive upgrade alerts? Update your management links with the new path to your admin pages.

Update your home page file

Reference the new location of your files in your home page.

  1. Find a file called index.php in your File Manager.
  2. Click the Edit icon  Edit in the PHP Editor.
  3. Find code that looks like this: require('.//blog1/wp-blog-header.php')

      Tip: This code refers to the location of your files. To display your blog correctly, you'll need to change this code to your new file location.

  4. If you moved your files from the directory blog1 into a new directory called wordpress, then you’d change it to: require('.//wordpress/wp-blog-header.php')
  5. Click Save and Continue.

Update your permalinks after editing the files

  1. Go to your WordPress control panel.

      Note: Access your console using the new path you created. For example, if you renamed your folder wordpress, you'll now sign in at http://widgetdesigns.com/wordpress/wp-admin/.

  2. Click Settings | Permalinks.
  3. Based on your new blog location, edit your permalink structure and click Update Permalink Structure.

      Caution: Once you’ve moved or renamed your blog files, previously saved links and permalinks won’t work any longer. You’ll need to update your URL locations on the control panel before renaming or moving your installation directory.

 

Thank you! Your feedback has successfully been submitted.

Please tell us why you didn't find this helpful.

Send Feedback