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.
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. :)
ezwebbit
Member
Posted 4 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!
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.
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.
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?
goofydg1
Member
Posted 4 years ago #
Goofydg1 - thanks, that was exactly what I was looking for. Much appreciated.
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.