WordPress 404 error and Mod_Security

I’ve recently been having a pretty annoying problem with WordPress.

I’d write a post. Sometimes it would publish, and other times I’d be shown the WordPress 404 error page. Strange? I thought so too. At first I thought it was something to do with with my code – and as I use the Thesis theme, I checked the custom_functions.php file. Nope, nothing wrong there.

I disabled my plugins, one by one, and nothing changed either. I installed the WP-Optimize plugin thinking there were too many post revisions and autosaves – it didn’t change anything. I’d still be randomly thrown the 404 error page when posting, saving, or previewing post/page.

Google to the rescue. It threw up several links to the WordPress support forums (here and here). It suggested some kind of issue with mod_security. More searching led me to this post by Matt Rudge, detailing what was happening and how to fix it. I’d highly recommend you submit a support ticket with your webhost to see if they can fix the issue if it arises. Also, I’d recommend you check Matt’s the article out if WordPress gives you a 404 error when your trying to post or publish something.

{ 0 comments… add one now }

Leave a Comment