Here's the important part of my CF 404 handler.  Not much for a shared
server admin to maintain:

<CFIF not isdefined ("error.diagnostics")>
        <!---not defined. must be a 404--->
        <cfset variables.GoPage="http://"; & CGI.SERVER_NAME>
        <CFLOCATION URL="#variables.GoPage#" ADDTOKEN="No">
</CFIF>

That one code bit runs for an entire server with about 4 dozen sites on it.

If a page is not found, the user gets to the site's home page. 
Automatic linkrot fixer.
Just in case, If the variable is defined an error handler bats cleanup.

-- 
--Matt Robertson--
President, Janitor
MSB Designs, Inc.
mysecretbase.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183666
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to