Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Today I tried to access the admin panel for a basic Wordpress site. It has no plugins, and uses the default theme. I haven't modified any files. Any admin url returns an HTTP 406 "Not Acceptable". What's going on?

share|improve this question
    
Is there any .htaccess in /wp-admin? edit : 406 happens when the server cannot respond with the accept-header specified in the request. –  JMau May 15 '13 at 19:54

2 Answers 2

I found this which might solve your problem:

<IfModule mod_security.c>
SecFilterEngine Off
</IfModule>

This code goes in a file called .htaccess and must be uploaded in /wp-admin directory. This will disable mod_security which is a module in Apache2 activated by default but it can be problematic.

EDIT: @Rarst is right. It is just to see if the problem is here. You'd better not to leave this in /wp-admin directory after testing.

share|improve this answer
    
I would strongly recommend to ask hosting support to tweak mod_security rules, rather than trying to completely disable it. –  Rarst May 15 '13 at 20:23
    
If it is a problem with mod_security you can use SecRuleRemoveById to remove the rules that are causing the issue. I wrote a blog post about it ages ago pablumfication.co.uk/2010/02/05/… but not sure how valid it is with the current version of mod_security and current version of WordPress. –  Mark Davidson Aug 29 '13 at 10:23

My solution is,m let your host provider know, they'll ask for your IP address, they will clear this address and all is fine again.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.