Wordpress 406 Not Acceptable - Any WP Experts Out There?

11 replies
Hey guys,

I have been trying to find a solution to this annoying problem, and the first thing I did was post in the Wordpress forums but there is not a lot of help.

Basically the problem is when ever I write a post on my WP blog and submit a post that contains any links i get:

Not Acceptable

An appropriate representation of the requested resource /blog/wp-admin/post.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


If I take links out the posts it works but what good is a blog without any links right?


Not sure what is causing this - I looked for a solution on Google and found this:


  1. Download .htaccess file from your root directory or create one if not exist.
  2. Add following Line in .htaccess file.
  3. <IfModule mod_security.c>
    <Files post.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
  4. If <IfModule mod_security.c> line already in your .htaccess file then place only <Files..></Files> block inside if module block.
  5. Save file and upload file to your host root directory.
  6. All done..
I actually tried this and it did not work!

As well as that by doing the above your WP blog is likely to get hacked.

Anyone know anyway I can fix this problem or had the same problems?

Chris
#406 #acceptable #experts #wordpress
  • Profile picture of the author Marketing Cheetah
    Ok looks like you already tried Google.

    This solution looks real simple. Not sure if it will work as I myself can't try it: http://www.techzilo.com/wordpress-40...ble-error-fix/
    {{ DiscussionBoard.errors[3428295].message }}
    • Profile picture of the author Chri5123
      Originally Posted by jugroo View Post

      Ok looks like you already tried Google.

      This solution looks real simple. Not sure if it will work as I myself can't try it: How to fix "406 not acceptable" error (WordPress)
      Cheers for your help on this.

      Just tried the above and it got me an Internal Server Error

      Chris
      {{ DiscussionBoard.errors[3428331].message }}
  • Profile picture of the author Headfirst
    Originally Posted by Chri5123 View Post

    1. Download .htaccess file from your root directory or create one if not exist.
    2. Add following Line in .htaccess file.
    3. <IfModule mod_security.c>
      <Files post.php>
      SecFilterEngine Off
      SecFilterScanPOST Off
      </Files>
      </IfModule>
    4. If <IfModule mod_security.c> line already in your .htaccess file then place only <Files..></Files> block inside if module block.
    5. Save file and upload file to your host root directory.
    6. All done..
    Chris, that doesnt look like the proper syntax for an addition to your .htaccess are you sure that doesn't go in your httpd.conf?
    {{ DiscussionBoard.errors[3428885].message }}
    • Profile picture of the author Chri5123
      Originally Posted by Headfirst View Post

      Chris, that doesnt look like the proper syntax for an addition to your .htaccess are you sure that doesn't go in your httpd.conf?
      I'm not sure that is what I found when I googled the error and to be honest I don't know what the httpd.conf is.

      I did try it however and it did not work.

      Not sure how to fix this one!
      {{ DiscussionBoard.errors[3429172].message }}
      • Profile picture of the author KirkMcD
        Originally Posted by Chri5123 View Post

        I did try it however and it did not work.
        .htaccess is tricky to work with sometimes. Are you sure you edited the correct file and that the changes were saved?
        {{ DiscussionBoard.errors[3429244].message }}
        • Profile picture of the author Chri5123
          Originally Posted by KirkMcD View Post

          .htaccess is tricky to work with sometimes. Are you sure you edited the correct file and that the changes were saved?
          Yes as far as I know.

          I have edited loads of .htaccess files for Wordpress normally for permalinks.

          Not sure what this error is though?

          Anyone got any ideas?
          {{ DiscussionBoard.errors[3429258].message }}
  • Profile picture of the author Istvan Horvath
    I always thought those lines about mod_security were supposed to be in a separate htaccess file placed in the wp-admin directory - NOT in the root htaccess file.
    Signature

    {{ DiscussionBoard.errors[3429394].message }}
    • Profile picture of the author Chri5123
      Originally Posted by Istvan Horvath View Post

      I always thought those lines about mod_security were supposed to be in a separate htaccess file placed in the wp-admin directory - NOT in the root htaccess file.
      Yes, that is correct ^

      At least that is the .htaccess file I have been editing.
      {{ DiscussionBoard.errors[3429422].message }}
      • Profile picture of the author Istvan Horvath
        Originally Posted by Chri5123 View Post

        Yes, that is correct ^

        At least that is the .htaccess file I have been editing.
        Well, you said completely different in your OP:
        Save file and upload file to your host root directory.
        All done..
        I actually tried this and it did not work!
        And I am saying do NOT edit the htaccess in the root.
        Make a separate, new htaccess only for the mod_security commands and put it in the example.com/wp-admin/ directory!
        Signature

        {{ DiscussionBoard.errors[3429479].message }}
        • Profile picture of the author Chri5123
          Originally Posted by Istvan Horvath View Post

          Well, you said completely different in your OP:


          And I am saying do NOT edit the htaccess in the root.
          Make a separate, new htaccess only for the mod_security commands and put it in the example.com/wp-admin/ directory!
          Hi Istvan,

          Sorry for the confusion.

          To confirm I have tried both editing the htaccess in the root directory and the .htaccess in the /wp-admin/ directory as well.

          Tried deleting both as well.

          Also tried editing the one on the root and deleting the wordpress .htacess file.

          and then vice versa just having the wordpress .htaccess and deleting the one in the root.
          {{ DiscussionBoard.errors[3429572].message }}
  • Profile picture of the author Istvan Horvath
    If nothing works, then it's time for a call to your host and ask them about the mod_security and how to disable it for just that one directory (wp-admin).
    Signature

    {{ DiscussionBoard.errors[3429605].message }}

Trending Topics