Brett081597
asked on
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
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
it's possible, but how it's done depends on what server you're running.
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).
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).
you should find error page of your internet web server - apache, IIS, ...
It has to be done serverside..so..what server are you using ? (if it's IIS, the answer is Simple..)
ASKER
all my sites are on IIS 4.0
what now.
thanks.
Brett
what now.
thanks.
Brett
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...
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...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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/
http://www.demon.oaktree.co.uk/gonmad/malf/
ASKER
thanks for everyone's help
Brett
Brett