Ive got the exact same problem!
When setting the permalinks to the “default” – site.com/?p=123 it works. Then I set it back to the custom structure: /index.php/%year%/%monthnum%/%day%/%postname%/ and it breaks again. I really would like to have the custom structure working; Google has my site indexed as such. Can anyone help?
1. Upload this file to your wp-includes directory:
(easy to save this link as rewrite.php, then upload it: http://trac.wordpress.org/attachment/ticket/6650/rewrite.php?format=raw)
2. Set permalinks to “Default” and Save it.
3. Set permalinks to “Custom Structure” of your choice and Save it.
(Mine is: /index.php/%year%/%monthnum%/%day%/%postname%/)
4. The above fixed it, but I saw some weird errors at the top of each of my pages pointing to wp-includes/plugin.php – so I added a hack:
error_reporting(0); (put this at the top, just below the opening
That’s it. Please let me know if you have any problems by commenting on my blog here: How To Fix Permalinks In WordPress When All Else Fails
The fix you used was meant for WordPress 2.5. I’m not sure if you can use it safely for WordPress 2.6.
Nevertheless, another temporary fix is to add tags and categories prefixes in the permalink admin screen. This will make your URLs valid before we get the problem fixed by the WordPress developpers.
i went to download http://www.wordpress.org/latest.zip, got the rewrite.php from that and replaced it again in my installation, and the two error lines are gone, and the permalinks work correct.
Don’t forget to write down your permalink phrase as this procedure will remove it, and you have a problem when you crafted a complicated one!!
Sorry — I get a 404 error with that link.
Anyone else have any luck with this?
Otto, my problem wasn’t with the .php. I also upgraded the other day and everything seemed to be fine for a while…except my categories, which were missing. It seemed as soon as I fixed the categories (using this fix), my permalinks broke. It worked briefly in conjunction with the Permalinks Redirect button, but when I started to try and clean up (like, replacing the small htaccess file with the complete one), everything broke again. I tried kworthington’s fix, but that didn’t work either. Please help.
I recently upgraded to WP 2.6.1 and this fix doesnt work at all… when i upload the file, all goes wrong and i cant actualize the settings. So when i upload the original file “rewrite.php” all goes normal and not functional.