WordPress 404 error when publishing or saving

Wordpress logoWordPress has this particular problem when publishing or saving a blog post where it shows a 404 page instead of the required effect. This is irritating when you have typed a long post and just after you have published it shows the 404 error, and all your data is lost. I have faced this same problem for many times.
After a bit of Googling, I found out that the problem is with mod_security being set on server.
To fix this, add the following two lines in our .htaccess file.
SecFilterEngine Off
SecFilterScanPOST Off

This should fix the problem. Let me try publishing this post.

3 thoughts on “WordPress 404 error when publishing or saving

  1. Stefani

    I am having a problem with getting a 404 error code when trying to view my pages that I published with WordPress. I tried this but it didn’t work for me.

  2. Pingback: Upgrading WordPress 2.2 to 2.3 | Polymath Programmer

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>