Moving WordPress to a new website address/directory

Moving the WordPress files from one location on your hosting account to another, i.e. changing its URL, requires some special care. Please see the following for step-by-step instructions to move your WordPress site to a new location on the same server. We would strongly suggesting downloading a full backup of all WordPress files prior to making any of these changes.

 

  • Create the new directory on your hosting account for the WordPress website
  • Log in to your sites WordPress Dashboard
  • Click Settings on the navigation bar on the left > Click General
  • In the box for WordPress Address (URL): change the address to the new location of your main WordPress core files
  • In the box for Site Address (URL): change the address to the new location, which should match the WordPress (your public site) address.
  • Click Save Changes (do not try to open/view your site now)
  • Move your WordPress core files to the new location. This includes the files found within the original directory, such as http://example.com/wp, and all the sub-directories, to the new location
  • Now, try to open your site by going to yourdomain.com/wp-admin. Note, you may need to go to yourdomain.com/wp-login.php
  • If you are using Permalinks, go to the Administration > Settings > Permalinks screen and update your Permalink structure to your .htaccess file, which should be in the same directory as the main index.php file.
  • Existing image/media links uploaded media will refer to the old folder and must be updated with the new location. You can do this with the Better Search Replace plugin.
  • If your theme supports menus, links to your home page may still have the old subdirectory embedded in them. Go to Appearance > Menus and update them.

 

Please ensure that all URL’s are updated before the website files have been moved. For more information/assistance when making this change, please visit the official WordPress Support website.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to reset WordPress Dashboard password

There are a number of way in which you can reset the password for your WordPress admin section....

WordPress security plugins – what do they do and do I need one?

After setting up your new WordPress website, one of the first things you should do is install a...

How do I install a new WordPress plugin

WordPress is one of the most popular pieces of software used to build a website, and it is...

Reinstalling WordPress using the Softaculous installer

  Packaged in with shared hosting accounts with LetsHost, you will have access to the...

Changing the title, tagline and favicon on your new WordPress website

When you install a new WordPress website, it was have a default title and tagline and a...