Fix for Broken Permalinks after WordPress Server Move

The Permalink Problem

I recently moved a few WordPress 2.8.x sites from one server to another. Oddly, when clicking on individual blog entries, every one of them threw a 404 after restoring onto the new server. Index page was fine. Admin pages were fine. But any specific blog page was 404’ing. Hmm.

The Permalink Fix

Admin -> Settings -> Permalinks and clicked Default, then back to Month and name. That’s it.


My Suspicions

I really have no idea, and I don’t have time to investigate. Was it specifically the act of restoring the database (server environment agnostic)? Or was it the other way ’round? Or some other cause?

Tags: , , , ,

3 Responses to “Fix for Broken Permalinks after WordPress Server Move”

  1. Jim Says:
    March 4th, 2010 at 11:21 am

    What if you want to turn permalinks back on again? Did you find a fix for that? I’m in the same boat here, and cannot get them to work whatever I do…

  2. Matt Says:
    March 5th, 2010 at 12:36 am

    As I understand it, what I did turned permalinks (nice-looking URLs) back on.

  3. Leo Says:
    March 23rd, 2010 at 9:03 pm

    What Matt (the post author) says is correct. First of all, change to default, after that, change to Custom Structure (if thats the option you want) and finally, dont forget to modify the .htaccess file (again, if you choose Custom Structure only), the code to insert in the file will be provided within the permalinks page itself, just after those options. If the .htaccess file is writable I guess you dont need to do it, since WordPress does it automatically, but otherwise, you need to do it and update the file.

Leave a Reply