PDA

View Full Version : .htaccess file creation help... please



WebCraft
10-14-2003, 07:02 PM
Hello fellow developers.
I am trying to locate some information on the web about .htaccess files. Not for password protection but for my 404 error docs. I want to customize them.
Can someone please guide me step by step through what the lines of code are to read and so on?

I already have a page that is named oops.html for the customized read.

What can I do?

Thank you in advance!

Sualdam
10-14-2003, 07:34 PM
These links explain it in detail:

http://www.freewebmasterhelp.com/tutorials/htaccess/1
http://help.mindspring.com/webhelp/resources/powertips/accessindex.htm
http://w3.ag.uiuc.edu/DLM/GoHTTP/htaccess.html
http://www.cs.brandeis.edu/~guru/htaccess/

That first one is very straightforward.

You may need to check with your host to make sure you can use them or have them enabled if you can't (I did).

WebCraft
10-14-2003, 07:39 PM
Sualdam,

Thanks ever so much! That web site is a beauty! Will use it often I am sure.

cyberious
10-28-2003, 08:26 PM
I've been using this simple method of redirecting to a custom 404 Error page.

Just add this line to the .htaccess file:


ErrorDocument 404 http://www.yoursite.com/404errorpage.html

It will redirect to your custom html page.