In some cases, you may want to change the old domain name or path of your blog to a new one. In such cases, you may have trouble to access your wordpress blog after such change. This article gives solution for that.

At first, Let me show you two cases that I have met (The following operations happened after I had installed my wordpress blog on my machine).

  • In the first case, I want to move the blog from the old folder to a new folder for some crazy reasons. I created a new folder that I like. Then, I moved everything under the old folder to the new one. Then I found that I could not access my blog using either the new path or the old one.
  • In the second case, my network has temporary problem. So I tried to use a local URL like http://localhost/techiecat/blog to access my blog. But I failed.

Reason

  • All of this failures are due to the WordPress Address and Blog Address you set in the Settings section. After you change your path or domain, the new URL does not match the old URLs in the Settings section any more!

Solutions

  • The first solution: you have to change the WordPress Address and Blog Address BEFORE you change the path or the domain name, exactly the same as the new path that you would use to access your blog.
  • If you forget to change the WordPress Address and Blog Address, you will be unable to change it using the wordpress interface. However, you can fix it if you have access to the database. Go to the database of your blog and find the wp_options table. This table store all the options that you can set on the interface. The WordPress Address and Blog Address are stored as siteurl and home (the option_name field). All you have to do are to change the option_value field to the correct URL for the records with option_name=’siteurl‘ or option_name=’home‘.

Tags:

This entry was posted on Wednesday, June 18th, 2008 at 5:00 pm and is filed under Wordpress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One comment

Gabe
 1 

Thanks for the info, found you doing a quick google search for “wordpress set path”. A friend of mine must have installed it wrong, because he is having this problem too.

This should fix it right up for him. Thanks for saving me some time.

July 30th, 2008 at 1:45 pm

Leave a reply

Name
Mail (will not be published)
URI
Comment