Post article failed with ‘Precondition Failed’ with wordpress

之前在WorePress 3.0.1上Post一篇博文的时候出现了”Precondition Failed The precondition on the request for the URL /wp-admin/post.php evaluated to false.”的错误页面,这个错误看上去不像是由php引起的,很有可能是apache相关的一个错误。Google了半天,网上讨论认为这可能是由于MAD_SECURITY模块引起的,而非WordPress的Bug。一般该错误可以通过修改.htaccess文件规避,透过Cpanel或ssh等界面修改该文件(一般就在虚拟空间的根目录下),在结尾处加入以下记录:

<Files post.php>
SecFilterInheritance Off
</Files>


# END WordPress

修改后保存并再次尝试Publish文章,发现不再出现”Precondition Failed”错误。


Posted

in

by

Tags:

Comments

Leave a Reply

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