Moving WordPress Site

There are times when you need to move WordPress around within your server, and times when you need to move WordPress from one server to another. You don’t need to reinstall. WordPress is flexible enough to handle all of these situations.

When Your Domain Name and URLs Do Not Change

Moving your domain without changing the Home and Site URLs of your WordPress site is very simple, and in most cases can be done by moving the files.

  • If database and URL remains the same, you can move by just copying your files and database.
  • If database name or user changes, edit wp-config.php to have the correct values.
  • If you want to test before you switch, you must temporarily change “siteurl” and “home” in the database table “wp_options” (through phpMyAdmin or similar).

If you had any kind of rewrites (permalinks) setup you must disable .htaccess and reconfigure permalinks when it goes live.

When Your Domain Name or URLs Change

When your domain name or URLs change – i.e. from http://example.com to http://newexample.com – there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.

If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have two options:

  • Only perform a search and replace on the wp_posts table.
  • Use the Search and Replace for WordPress Databases Script to safely change all instances. ( If you are a developer, use this option. It is a one step process as opposed to the 15-step procedure below )
Advertisements

21 thoughts on “Moving WordPress Site

  1. free online casino

    I like the valuable information you provide in your
    articles. I will bookmark your blog and check again here
    frequently. I am quite certain I’ll learn many new stuff right here! Best of luck for the next!

  2. icf insulated concrete forms

    This website was… how do you say it? Relevant!! Finally I’ve found something which helped me. Cheers!

  3. First off I would like to say awesome blog!
    I had a quick question which I’d like to ask if you don’t mind.
    I was interested to find out how you center yourself and clear your head before writing.

    I have had a tough time clearing my mind in getting my thoughts out there.
    I do enjoy writing however it just seems like the first 10 to
    15 minutes are usually wasted just trying to figure out how
    to begin. Any recommendations or hints? Cheers!

  4. Great post. I was checking continuously this blog
    and I’m impressed! Very useful info specially the last part 🙂 I care for such information a lot. I was looking for this particular info for a very long time. Thank you and good luck.

  5. Usually I do not learn post on blogs, but I would like to say that this write-up
    very compelled me to try and do so! Your writing taste has
    been surprised me. Thanks, very nice post.

  6. CLICK REFERENCE

    I don’t even know how I stopped up here, however I thought this put up was great. I do not know who you’re but definitely you’re going to a famous blogger in the event you aren’t already.
    Cheers!

  7. Useful Link

    Everything is very open with a clear explanation of the issues.
    It was truly informative. Your website is useful.

    Thanks for sharing!

  8. read more

    My brother suggested I might like this blog. He was entirely right.
    This post truly made my day. You can not imagine just how much time I had spent
    for this info! Thanks!

  9. Visit Our Site

    WOW. I found this on google looking for something totally unrelated- now I’m going to have to read through all the archives! So long spare time today, but this was a truly spectacular find 🙂

  10. stabilizator

    Fantastic site. Plenty of helpful info here. I am sending it to some buddies ans also sharing in delicious.
    And naturally, thank you on your effort!

  11. carson city estate planning lawyer

    Simply desire to say your article is as amazing. The clearness in your post is simply
    excellent and i could assume you’re an expert on this subject. Well with your permission allow me to grab your feed to keep up to date with forthcoming post. Thanks a million and please continue the gratifying work.

  12. vin number decoder

    Appreciating the commitment you put into your site
    and in depth information you provide. It’s great to come across a blog every once in a while that isn’t the same old rehashed material.
    Great read! I’ve bookmarked your site and I’m adding your RSS feeds to my
    Google account.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s