.htaccess root vs subdirectory issue

Please excuse the simplicity of this query but I have been looking for a resolution on this and I cant seem to find one. All the resources I have found dont work and create 500 internal server errors.

Issue:

I have htaccess file protecting my root directory but I want to provide uninterrupted public access to two subdirectories off root say test1 & test2. I found this somewhere but as mentioned it threw the internal server error:

<Directory /home/user/public_html/test1/>
AllowOverRide All
</Directory>

From error logs it is clear, as I found out later that <directory> directive is not allowed in .htaccess file. So I am now at a bit of a loss.

Any advice would be appreciated.

thanks

 

 

 

 

Top