how to fix wordpress 404 error when posting in wordpress

If you have mod_security turned on in your server you will sometimes get a 404 not found error when you try to save or publish your post. To fix this add the lines
SecFilterEngine Off
SecFilterScanPOST Off

to your .htaccess file in your wordpress’s root directory to turn off mod_security’s keyword filtering feature for posting forms, and you should not get the error anymore when you try to post.

2 thoughts on “how to fix wordpress 404 error when posting in wordpress”

Leave a Reply

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

You may use these HTML tags and attributes: