admin管理员组文章数量:1330565
I have a wodpress site, and I have submitted it to google webmaster tools. When I search on google by my site name, the results come, and on clicking the searched result, I can open the website on my PC. But when doing the same thing on my mobile, i get this
Error 406: Not accebtable
How can can resolve it?
I have a wodpress site, and I have submitted it to google webmaster tools. When I search on google by my site name, the results come, and on clicking the searched result, I can open the website on my PC. But when doing the same thing on my mobile, i get this
Error 406: Not accebtable
How can can resolve it?
Share Improve this question edited Apr 5, 2015 at 16:01 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked Apr 2, 2015 at 19:45 optimusoptimus 1131 gold badge1 silver badge3 bronze badges4 Answers
Reset to default 1I had a similar problem recently with this 406 Not Acceptable error occurring when trying to update permalinks in WordPress. I also had the same problem when submitting any changes to the editor, etc. Google Webmaster tools would yield the same result.
The solution is to disable the mod_security firewall within your .htaccess
file.
My fix was to install a plugin called "WP Htaccess Editor" (free WP plugin), then update the .htaccess
file to the following, between the "Begin WordPress" and "End WordPress" tags:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Hope this helps.
A 406 Not Acceptable
HTTP error usually indicates that the content type of your webpage is not in the Accept
request header that your browser sent to the webserver.
When you load a website, your browser sends a Accept
header with the content types that it will accept, like text/html
or text/xml
. But when the webserver sends a format your browser doesn't accept, it will give you a 406 HTTP error.
My guess is that a plugin or theme is changing the content type header, or your phone's browser is acting weird.
This happened to me while using WooCommerce API for Node JS. I just changed the verb put to post and it worked.
Here was fixed using this lines on .htaccess file (public_html)
<IfModule mod_security.c>
SecFilterEngineOff
SecFilterScanPOSTOff
</IfModule>
本文标签: htaccessError406 not acceptable
版权声明:本文标题:htaccess - Error:406 not acceptable 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742224884a2436127.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论