I don't know which hosting company you're with, but many (Including ours) allow users to specify which page is served for a page-not-found. By default it's usually something like 404.htm but there's no reason it cant be a coldfusion page like 404.cfm. On our system that's what we recommend.
Then 404.cfm takes the cgi.http_referer to see what they're looking for and redirects them to another page, if it's valid, or to the home page or a 'friendly' page missing if it's not. Have a look at my own web site, http://afpwebworks.com/colorschemer you'll be redirected off to http://afpwebworks.com/Index.cfm?pid=111237 - that's how it's done. Then try mis-spelling colorschemer - you'll be redirected to the home page. The 404.cfm page can be a simple one like mine, or it can look up a database to see which page should be served for the different urls you expect users to look up, or you could use a CFSWITCH set to work out what page to serve. No server changes needed at all, except changing the name of the 404 file to a coldfusion file, and that can be changed using the control panel without any reference to the system admin. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On Tue, Feb 10, 2009 at 1:56 AM, bill turner <[email protected]> wrote: > > Is there anyway to do URL rewriting, or at least capture the 404's, when > running in a shared environment where I have little control over the > environment? I've read many, many posts and articles on the web, but all are > either talking about changing something at the server level (which may be the > answer itself) or are using CF8 to capture the missing templates. > > Thanks, > Bill > www.changent.com > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319080 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

