WordPress.org

Ready to get started?Download WordPress

Forums

Domain switching db question (9 posts)

  1. jeffb0
    Member
    Posted 5 years ago #

    I want to set up a WP site on one domain and then switch it over to a new domain when it's ready to roll. I will also need to change the db WordPress uses (by hand) so my question for you pros is this:

    To perform a "perfect migration" to my new domain, what do I need to edit in the db?

    I see two options in the wp_options table that obviously will need to be changed: siteurl and home, but is there anything else that you recommend or suggest I correct?

    Thanks. I'm a bit of a perfectionist, so I just want to be sure.

  2. http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server

    You really should be able to do an edit, export, copy, import, paste, done. :)

  3. ezwebbit
    Member
    Posted 5 years ago #

    wow. this was very helpful! i wasn't sure what to update in my WP DB after changing my main domain for the site. Thanks for the help! As everything looks right now, i think you found what was necessary!

    merry xmas!

  4. solutionsphp
    Member
    Posted 5 years ago #

    If you have pages/posts linking to other pages/posts on your WordPress site, I think you'll still have to update those links in the database since those are absolute URLs.

  5. Depends how you linked.

    If you linked like this <a href="/blog/2008/foo-bar-post">Foo Bar!</a> you should be fine :)

    Relative links vs, y'know, the other kind.

  6. Thomas
    Member
    Posted 5 years ago #

    Relative links vs, y'know, the other kind.

    Problem is that WordPress automatically insert absolute links as this seems to be more W3C valid.

    Is there a way to change this behaviour so that WP do a relative link instead?

  7. goofydg1
    Member
    Posted 5 years ago #

    this is a good one too if you're comfortable using mysql.
    http://www.smashingmagazine.com/2008/12/18/8-useful-wordpress-sql-hacks/
    Item 6.

  8. jeffb0
    Member
    Posted 5 years ago #

    Goofydg1 - thanks, that was exactly what I was looking for. Much appreciated.

  9. Problem is that WordPress automatically insert absolute links as this seems to be more W3C valid.

    Ah, and I hand-insert my links. So naturally I never see that behavior.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.