PDA

View Full Version : htaccess..yeah again!


Armand
03-10-1999, 06:57 AM
okay can't find any info on this and can't make much sense of the Apache documentation. And it wasn't covered in Justin's tutorial either I double checked.

If you put setup a htaccess file in a subdirectory to say change the error files (404,500,etc) will it cascade down for use in for any directory created within the main sub-directory. (Did that sound weird or just me?)

say you have a subdirectory named I don't know "testing" and then a directory within it that called "graphics"...would the htaccess file in testing also set the 404 and such for the "graphics" directory. Or do you have to set a htaccess for each directory within the sub?

Okay I'm just being a pain now. But seriously need to know.
------------------
Armand (aka Joe) http://www.arcanumcafe.com/images/smokey.gif

joe@arcanumcafe.com
www.arcanumcafe.com (http://www.arcanumcafe.com)

[This message has been edited by Armand (edited 03-10-99).]

Justin
03-10-1999, 08:27 AM
Yes. It will find the next closest one and use it (that didn't sound right either http://www.aota.net/ubb/smile.gif)

Example:

/big/dom/xdomain/www/.htaccess

covers the whole www and it's subdirectories. Also:

/big/dom/xdomain/www/test/.htaccess

will override the first one for /test and everything inside of it, including it's subdirectories.

What I wonder is this. If there's one in /www/test with only the 404 specified, then one in /www specifying 403, 401, etc, will you then have all three in the /www/test?

Sonething to ponder...


------------------
Justin Nelson, SFE Software
www.vdj.net (http://www.vdj.net)

Armand
03-10-1999, 05:59 PM
Thanks Justin...I think I understood that. http://www.aota.net/ubb/wink.gif

guess I'll find out first hand when i get around to trying it later today.

<edit>YEAH BABY!!! Got it to finally work! Yeah the htaccess does cascade down. I like that. Just had to fight with the paths in the htaccess file. Okay now I've got my site and the client's site are configured with htaccess. Trust me you don't want to know how many of them I am using. (A lot of indexing turned off)

"I am so happy cousin Larry, now we do the dance of joy" </edit>

[This message has been edited by Armand (edited 03-11-99).]