Sorry but I don't really have a lot of time to go into it but I hope this puts you on the right path.
In your httpd.conf file do a search for 404. They have some info there explaining what you can do with server errors:
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
You can set up your own page for when a person clicks on a link that doesn't work (404 errors)
Here are some of the defaults:
ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
ErrorDocument 404 /error/404error.html
ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
I put /error/404error.html as the page that loads when someone looks for a page that doesn't exist. It doesn't have to be in the error directory you could have it go to any file under you web root.
Basically it is just a html page with a message and then times out and redirects the user to where ever you want.
you could also do internal redirects....but that is what I don't have time for. Bascially you would send the 404 errors to a sub handler, apachelib or perl file that you created that does an internal_redirect.
Hope that helped