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.

  • 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.

  • Pingback: Upgrading WordPress 2.2 to 2.3 | Polymath Programmer()

  • I learned this the hard way today, it took me 3 hours to figure out that mod_security was causing the trouble. I am in disbelieve that I wasted all that time :X