Hello to everyone with a Permalinks issue reading this post.
I thought I’d reply as I went through everything listed in this thread and from other sources yesterday trying to fix the 404 error with the new version of WordPress. I edited .htaccess, enabled mod_rewrite.. etc etc But no joy! In my particular case, it 404’d when viewing a “complex” permalink I’d just posted or when trying to create a new post containing one.
Eventually, I started looking at my mod_security logs and it would seem that /wp-admin/post.php was being blocked by my own server as it was reading the request as a possible SQL injection.
I have white listed the /wp-admin/post.php URI from mod_security and bingo, issue resolved.
Hope this helps.
Regards,
Matt Buck
Principal Engineer
RatwareUK
RatwareUK Blog