PDA

View Full Version : Custom Error Pages


v-design
03-27-2001, 06:32 PM
Hello everybody,

Can anyone expain to me how to create custom error pages with host rocket control panel. I can insert tags or something like that but i do not see my custom page. What sort of code can i place in?

btw..

Any Dutch customers should check out my CDR site www.cdbuyit.nl

Greetings,

V-design

Lila
03-27-2001, 06:56 PM
What do you mean you can't view your error page? Have you tried going to yourdomain.com/404.shtml (or whatever error page you have set up). It also needs to be big in size to show up when someone mistypes a link to your page, etc.

jetsetter
03-27-2001, 07:43 PM
In your .htaccess file in your public_html folder add the following lines:

ErrorDocument 401 /error.html
ErrorDocument 403 /error.html
ErrorDocument 404 /error.html
ErrorDocument 500 /error.html

That will redirect any errors to error.html. Of course you can get more elaborate then that and add different error.html files for each error.