deadlock Message Board
[ September Full List | Reply ]

Re: HELP!!!!!
From Patrick R at GrowSpot.com on 30 Sept '00
replying to HELP!!!!! posted by A BLACK

>Hello,
>
>I'm using a free ISP's web space for my site untill I get a domain. I've been told that naming a .htaccess text file in the root directory will point any incorrect address or file name entered in the address bar to a nice filenotfound page of my choice. I thought that this wouldn't work on freeisps space as there filenotfound may override but funnily enough my isps ic24 appears not too, so I was just wondering if anyone can tell me what text I need to put into the text file and if that's the correct name I need to name it, as when I tested it it sort of worked but not entirely
>
>Please help
>
>Thank you
>
>A. BLACK

It might be different on NT servers, etc, but this is how I do it:

ErrorDocument 400 http://www.growspot.com/error_docs/400.html
ErrorDocument 401 http://www.growspot.com/error_docs/401.html
ErrorDocument 403 http://www.growspot.com/error_docs/403.html
ErrorDocument 404 http://www.growspot.com/error_docs/404.html
ErrorDocument 405 http://www.growspot.com/error_docs/405.html
ErrorDocument 500 http://www.growspot.com/error_docs/500.html

I have a directory called "error_docs" in my public_html directory and that's where I put my error docs. They are titled "404.html, 405.html etc...

So you would put:

ErrorDocument 404 http://www.yourdomain.com/error_docs/404.html

It's a good idea to put a real explanation of what that error is.

Also, I would suggest putting a time-delayed re-direct (about 3 to 5 secs) back to your homepage.

Good Luck!

Patrick R.

--
GrowSpot.com - Get More From Your Yard
http://www.growspot.com




Reply to this message

Required Details
Your name:
Subject:

Optional Details
Home page title:
Home page URL:
Email:
(if you'd like to receive automatic replies by email)

Your Message