What I do is set up a site-wide missing template handler (In the cold fusion admin) that points to a file that contains the following script:
=========================================================== <cfif isdefined('http_host')> <cflocation url="http://#http_host#/404.cfm" addtoken="No"> </cfif> The page you requested is no longer available, or you misspelled the name. <br>Please click <a href="index.cfm">HERE</a> to go to the home page! ========================================================== Then, in the root directory of each virtual site, I have a 404.cfm page that explains that page is no longer available, and has a search box to help people find the page they want, as well as the navigation system of the web site. This way, each site can have it's own error handling page. I have the isdefined there because some browsers do not return the http_host variable, which would have made the page error out. In that case, we just have a simple error message displayed Be careful - EVERY site on your server will then need a 404.cfm file. If it doesn't have one, you get an endless loop that will take up a lot of your cpu! Al A1webs.com >I've got a site that we did as a redesign of an existing site from another >dev company - some of the search engines have the old site listed with >links to now-nonexistent pages and it's nearly impossible to get them to >change their database... How can I allow someone to come to the site and if >it's a non-existent page, automatically have them get redirected to the >home page? > >I'm running CF 5, IIS 5, Win2k and have virtual IP (only 1 IP) tho there >are several sites on the box. ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists