View Full Version : .htaccess question
blacksmith
03-26-2001, 07:37 AM
Hi, People.
Does anyone have an idea how to setup the .htaccess file so,
that any 404 request would be automatically redirected to an HTML or CGI file?
Any help will be greatly appreciated
Blacksmith
ErrorDocument 404 http://www.yoursite.com/test.html
Put this in your .htaccess:
ErrorDocument 404 http://www.yourdomain.com/whatever.html
blacksmith
03-26-2001, 03:42 PM
Cool, thanks, guys
TwinTone
03-26-2001, 08:05 PM
Keep in mind.. you will also need to add this to your CGI-BIN as well.. if you type in http://www.yoursite.com/cgi-bin/fjklasj.pl you will notice that it will not show the custom 404 unless you put the .htaccess in that folder as well.
I figured this out months after I added the first .htaccess.. =(
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.