PDA

View Full Version : omg, I'm so sorry, how many steps are there to do a 403 error?


EGGO
1-6-03, 06:57 PM
I forgot how to have it so people won't look into my subfolders (site was recently deleted and I had to bring it back).

I know I hafta do a
ErrorDocument 403 http://www.eggo.us/forbidden.html

in my .htaccess thingy but that sure as heck isn't working, so I know I'm missing a step...

I tried using the http://help.powweb.com/tutorials/htaccess/customerrors.php for help but still nothing

Ugh, I'm so sorry for asking this again...

Jade Dragon
1-6-03, 07:21 PM
just add the line below to the .htaccess file.

Options -indexes


that will prevent the browsing of directories.

JD

slprokeys
1-6-03, 07:45 PM
Hi,

ErrorDocument 401 /error/error401.htm
ErrorDocument 403 /error/error403.htm
ErrorDocument 404 /error/error404.htm

Works perfectly for me.

In my htdocs folder is a folder named error.

Thus, /error/filename.

HTH,

Steve