disregarding parent .htaccess commands?

Discussion in 'Apache' started by tarponkeith, May 17, 2009.

  1. #1
    I've got a .htaccess file in my root www directory, then another one in my www/included-files/ directory. Is there a way to tell the .htaccess in /www/included-files/ to disregard the root .htaccess file?

    Thanks!
     
    tarponkeith, May 17, 2009 IP
  2. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    no. just put overwrite the values of the parent htaccess into the subfolder one, i.e. using the opposite values. e.g. if your parent has "options -indexes" then put "options +indexes" into the subfolder htaccess, and so on. of course, it really depends on what you actually need.
     
    szalinski, May 26, 2009 IP