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>