Forum Moderators: phranque

Message Too Old, No Replies

Rewrite for 404

         

tirpitz

10:06 pm on Jan 12, 2004 (gmt 0)

10+ Year Member



Hello

I have 100 of domains hosted and I need to add an option that suppose there is a 404 Error generated, it gets redirected to its main site. Like

www.abc.com/test.htm and test.htm doesn't exist, then in that case i would like the redirection to have to www.abc.com. Since I have 100's of sites hosted, cannot afford to add Errordocument for each site. Is there any way I can write a Rewrite Rule.

Please help.

Anoop

leoo24

8:02 pm on Jan 13, 2004 (gmt 0)

10+ Year Member



quite easy, you need to alter your httpd.conf file, always always back this up before tinkering with it, you can set an errordocument through the httpd.conf file either the whole server or individual domains
here's a tutorial how to do it: http://www.stormerhosting.net/support/serverhelp/webserver/errorcodes.html

:)

[edited by: jdMorgan at 7:06 pm (utc) on Jan. 14, 2004]
[edit reason] De-linked [/edit]

leoo24

6:29 pm on Jan 14, 2004 (gmt 0)

10+ Year Member



oops, soz jd, forgot :) i blame it on bouncing between forums :)