I have a directory site that uses .htaccess and mod_rewrite to create SEF urls. Works great. I've created a new sub-directory called /shopping I'm putting a shopping/store app there that also uses .htaccess and mod_rewrite for it's own code. The problem is, the root .htaccess seems to be taking priority over the .htaccess in the /shopping directory. Is there any directive or command I can add to the .htaccess in /shopping to tell it not to use anything from the root .htaccess?
I have, and it doesn't seem to make a difference. I know both work individually well. It's when I add the amazon shopping script I have to the shopping directory, the mod_rewrite seems to inherit from the root.
post the codes of both your .htaccess. Your rules might be similar overwriting each other. Otherwise, in all subcats, the .htaccess overwrites the parent.
Thanks both for your willingness to help. I think I've figured out the problem. In the sub directory "/shopping" .htaccess, I had: RewriteEngine on RewriteBase / Code (markup): I changed it to: RewriteEngine on RewriteBase /shopping/ Code (markup): and now everything is working as it should be. Another day, another .htaccess mystery solved Thanks again for your offers to help.
i had a similar problem with my directory and only .htaccess would work was if i create a sub-domain for it instead of a sub-dir