Results 1 to 3 of 3

Thread: htaccess and mod_security

  1. #1
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default htaccess and mod_security

    Had a weird one today: Set up a Joomla article that had "mechanical-worksheet" in the URL, like this:

    http://something.com/worksheets/mechanical-worksheet

    but I kept getting a 406 Not Acceptable error. A bit of searching, and it turns out that mod_security is matching the "mech" pattern and preventing the page from being served.

    Got around the issue by changing the URL to ...mcncl-worksheet, but I'm curious to learn if this can be fixed more elegantly with .htaccess? I'd rather not change mod_security to allow "mech."

  2. #2
    Alexander's Avatar
    Alexander is offline Technical Analyst
    Join Date
    Jul 2007
    Posts
    1,772

    Default

    You can turn off mod_security if the .htaccess file for this folder by adding the following lines:

    SecFilterEngine Off
    SecFilterScanPOST Off

  3. #3
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,929

    Default

    Or if you have a dedicated server you can simply edit the mod sec config file and add or remove rules as you need.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

Similar Threads

  1. .htaccess password protect - GoDaddy
    By rlhanson in forum Web Design
    Replies: 6
    Last Post: 01-29-2008, 11:45 PM
  2. .htaccess, config settings, or what?!
    By rlhanson in forum WHM, Resellers, VPS and Dedicated Hosting Topics
    Replies: 10
    Last Post: 11-08-2007, 10:22 AM
  3. Ultimate .htaccess Tutorial
    By Kai in forum Programming Talk
    Replies: 4
    Last Post: 06-15-2007, 02:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14