default error pages

not sure if this is the best area for this question but....

i know there is a way so that if someone requests a page on your site that has been moved, deleted, renamed, etc... that it will give them a page where you can apologize for the bad link and direct them to your new home page instead of the 404(?) error page.

does anybody know how to do that?

Thanks

Brett
Brett081597Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nettromCommented:
it's possible, but how it's done depends on what server you're running.
0
djsansuiCommented:
Assuming you're using an Apache webhost (most hosts are) then it is done simply by creating a text file named .htaccess

The only code the file needs to contain is

ErrorDocument 404 /my404page.html

you can change the filename of the error page to whatever you like.  Then just put the .htaccess file in the directory in which this will apply (it will apply to all subfolders that do not contain a .htaccess file as well).
0
konektorCommented:
you should find error page of your internet web server - apache, IIS, ...
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

kikkertmCommented:
It has to be done serverside..so..what server are you using ? (if it's IIS, the answer is Simple..)
0
Brett081597Author Commented:
all my sites are on IIS 4.0

what now.

thanks.

Brett
0
kikkertmCommented:
Brett,

go into IIS-MMC--> rightclick the site your interested in and choose 'properties' than choose the 'error messages' tab. Choose the error message you want to change, click edit and choose 'file', then browse for the custom(html) page you made for that error and your done !

goodluck..

mike...
0
nettromCommented:
and if you're curious about if it's possible to create custom error messages in IIS which use a script of some sort, drop by http://msdn.microsoft.com/workshop/server/iis/customerr.asp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FredcanflyCommented:
Take a look at this.  I found it by surfing the web.  It doesn't redirect the page to the real page, but I'm sure you could set that up.  It is an interesting idea.  I am thinking of using it myself.  Here it is:

http://www.demon.oaktree.co.uk/gonmad/malf/

0
Brett081597Author Commented:
thanks for everyone's help

Brett
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.