Migrating wordpress 3.0.1 from one server to anoth

2019-08-05 06:51发布

问题:

Here's what I wanted to dot, what I've done, and... the (poor) result:

  • I wanted to: migrate my personal Website from one server to another one, and only change the IP on my DNS. So:
  • I changed the IP on my DNS. Ok. Everything's fine (it's been 7 days now)
  • I dump my Wordpress 3.0.1 database from server A
  • I copied recursively the full directory of my personal Website to the server B
  • on server B: I've created my utf8 wordpress database then re-injected the SQL dump (from A)
  • I've created the good user with the right permissions on the database B

And now: Everything works fine... Well Err... only the main page! See http://olivierpons.fr/ then click on a topic. I can't even log in! Do you know where I should look or what I am missing?

Thanks a lot!

Olivier

回答1:

Check if you included the .htaccess file. It's easy to forget those "hidden" files



回答2:

Has your domain name changed? Your articles seem to link to oliverpons.com, rather than oliverpons.fr. If you've changed the domain name, you'll probably want to change the "siteurl" and "home" values in the wp_options table. See this Codex article for more info. Also, as windyjonas says, check your .htaccess.

Bear in mind that this isn't really a programming-related question; you may be better off asking in other places.



回答3:

Okay I still don't know where the problem was, but here's what I did:

  • I exported all the articles from my old webserver A into a file XML_A
  • I created manually a new database on B
  • I launched Wordpress on B
  • I created all what's needed on B,
  • I imported all from the file XML_A

It works now but I'm pretty convinced this is not the right way to do this...

And I finally found the right answer an the right place (in case this might help someone):

http://codex.wordpress.org/Moving_WordPress



回答4:

Try this method as well if it works for you.

http://www.sayopenweb.com/migrating-wordpress-from-one-domain-to-another-domain/

especially if your URL or domain is changed.

I had the same issue and figured a custom way of migrating it. follow the link.