WordPress is a powerful blogging platform that is used by millions of websites, and has become a very powerful content management system.  There may be many situations that site owners may need to move their site or change the name.  There are many places within your site that will contain your current URL and you will need to update all occurrences to avoid user confusion.  Follow the following steps to make certain that your site is updated correctly:

  • Change your site name via Settings > General
  • Change your site URL
  • Update all of your post/pages GUID’s within the database
  • Update all occurrences of your sites URL within your content

Change the Site URL

There are 3 ways to change your site URL:

  • Edit wp-config.php – Add the following to your wp-config.php
  • Edit your themes functions.php – Add the following to your themes’s functions.php
  • Run a SQL query within your database – Run the following query in your database


Update Internal Links

You will next to update any internal links throughout your site and content.  Depending on the size of your site, you may be unable to check every page and this is best accomplished via a SQL statement within your database.

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *