PDA

View Full Version : .htaccess question


Brian
Mon 6th Aug '01, 5:42am
I am having a problem and need to have an .htaccess file not spawn the directories sub directory.

IE if the .htacess file was in /www/dir/ I dont want it to effect the directories under it ie www/dir/sub etc.

How could I do this.

Thanks in advanced :)

-Brian

JamesUS
Mon 6th Aug '01, 11:51am
Try putting an empty .htaccess file in the sub dirs you don't want changed.

Brian
Mon 6th Aug '01, 12:44pm
Actually /www/dir/ has the following in its .htaccess

ErrorDocument 404 /index.php3
ErrorDocument 401 /index.php3

And sub directory has the following in its .htaccess file

AuthUserFile /path to/.passwd
AuthName Protected_Area
AuthType Basic
require user xxxx

This is causing a problem because the sub folder shouldnt use the error documents from the parent folder.

-Brian