.htaccess rule that's effecting subfolders

Discussion in 'Apache' started by ChocolateLover, Mar 31, 2009.

  1. #1
    I have a rule which works well in the root.

    RewriteBase /
    
    RewriteRule pics/(.*.php)$ products.php?product_url=$1
    RewriteRule cat/(.*.php)$ products.php?category_url=$1
    RewriteRule man/(.*.php)$ products.php?manufacturer_url=$1
    Code (markup):
    The problem is that this rule is also trying to work on a domain that is within a subfolder of the root, which also has pages with /pics/*.php

    There is no .htaccess in the subfolder. Can anyone advise on how to stop the rule working on subfolders, or to create a rule in a .htaccess in the subfolder that will stop the above rule being executed?

    Any help would be appreciated, thanks.
     
    ChocolateLover, Mar 31, 2009 IP
  2. DanPonjican

    DanPonjican Active Member

    Messages:
    268
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    80
    #2
    DanPonjican, Mar 31, 2009 IP
  3. Lpe04

    Lpe04 Peon

    Messages:
    579
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Chocolatelover,
    Have you tried RewriteOptions inherit?

    Cheers,
     
    Lpe04, Mar 31, 2009 IP