An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

wordpress 用advanced custom fields  增加文章新字段,火车采集发布时,如果不增加新字段发布,则正常发布;增加新字段发布,则出现如题错误。经查,是服务器启用了 Mod_Security模块,拦截了新字段的添加内容。

 

怎么解决wordpress post.php“406 Not Acceptable”问题?

一般这个问题MOD_SECURITY造成

1.  将尝试停用MOD_SECURITY。所以你可以添加.htaccess文件在你的wp-admin目录

SecFilterEngine Off
SecFilterScanPOST Off

或添加.htaccess文件內root完全禁用它:

SecFilterEngine Off

2. 保存如下代码到 .htaccess 上传到网站根目录下:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

如果都不能解决的话,联系主机提供商,要求关闭MOD_SECURITY

http://www.fanyongzhuji.com/build-site/wordpress-post-php-406-not-acceptable.html