Yes, you can use a CFM file for this, we do this for 403s and redirection.








"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: C. Hatton Humphrey
To: CF-Talk
Sent: Wed Jun 06 17:47:23 2007
Subject: Custom 404 For Single IIS Site

I'm not sure if this is something that I can do but I'm hoping it's
possible:

I have a single site defined in IIS.  According to the properties tag
in IIS I can define custom error messages for each site.  Can this
page be a .cfm page?

Here's why I ask, I've been approached by someone that wants to create
a "custom directory" for a mailing list and deliver content to them
based on a record in the database.  Let's say that John Smith, Jane
Doe and Jim Dandy are all three names in the database.  They each
receive a postcard with a URL that includes their individual names.
For example:
http://...../John_Smith/
http://...../Jane_Doe/
http://...../Jim_Dandy/

Looking at this from one perspective, I could have the administrative
module phystically create the folders and copy in an index.cfm and
Application.cfm into each folder to take care of delivering the
content.

My other idea was to use a 404 page to grab the request and redirect
to the appropriate content based on the CGI variables.  However, this
site is running on a box along with other sites in CF and I don't want
their 404's to be affected.

The question is whether plan B is viable or if there is an alternate
plan to B that would negate me having to take up unneeded disk space?

Thanks!
Hatton



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 beta – Build next generation applications today.
Free beta download on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280269
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to