WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a weird problem with moving a Wordpress installation to a new server (just the server changes, domain remains the same, I'm currently accessing the site on the new server via the same domain and a hosts-file entry). Although the blog is displaying and I can access the admin area, there are no posts shown. The weird thing is, that the posts screen shows the correct statistics ("All (137) | Published (92) | Drafts (45)") but the posts table says "no posts found". On the frontend no posts are shown, but the "newer/older" links are shown and the archives list the months were posts were created. So it seems to find the posts, but somehow is missing some important information. I tried exporting/importing the DB with mysqldump/mysql on the command line and with phpmyadmin - same issue.

Did anybody experience this problem before?

share|improve this question
Did you change all of the old urls in your database dump to reflect the new url location before importing it into your new site? – DigitalSea Mar 20 '11 at 22:06
Well the URL stays the same, I'm just changing the server, so I didn't change anything in the dump file. – Mathias Mar 20 '11 at 23:45
Have you modified the table prefix value in the wp-config file by any chance? – DigitalSea Mar 21 '11 at 0:05
Nope, table prefix is the same. Copied the files 1:1 to the new server and imported the SQL dump. – Mathias Mar 21 '11 at 21:26
Umm seems to be an issue with my theme. Quite strange, when I import the dump and display the site with another theme, all works fine. As soon as I activate my theme the posts are gone. Even if I deactivate my theme the posts are still gone. So - time for a new theme. Thanks for the help :) – Mathias Mar 22 '11 at 23:22

Reset permalinks at Dashboard>>Settings>>Permalinks and be sure WP says it was able to make changes to the .htaccess file, or make the changes yourself it fails to write to .htaccess.

Did you change installed directories? I.e., from /wordpress/ to root? If so, see http://codex.wordpress.org/Moving_WordPress

And if you moved to a Windows IIS server, be sure it's set up to handle pretty permalinks: http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite

share|improve this answer

Go into your admin and go to Settings/Permalinks, make sure your links are set as desired and hit save changes. Worked for me.

share|improve this answer

If you were hosting on a Linux box originally, chances are your tar or zip command didn't include .htaccess. Resaving your permalinks option (or copying over your .htaccess) file should fix it.

share|improve this answer
.htaccess was copied too. I don't think the .htaccess is the issue as the posts don't get found in the admin interface. – Mathias Mar 21 '11 at 21:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.