in Software, Tips and Tricks

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.

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

Comments are closed.


  • Upgrading WordPress 2.2 to 2.3 | Polymath Programmer December 14, 2008

    […] characters, but I don’t think that’s the problem. I did some searching and found this solution about saving with an “Error 404″. Simply […]