Andy,
I think I know what you are getting at. I will give you an example
from a site I work with. A manager can post a new job opening and
enter a description using a super-simple CMS. It is just a database
entry. No page gets created. However, they can advertise the job as
http://www.site.com/jobs/florida-sales-position/.

The way it is set up is, for that specific jobs directory, IIS is
configured so that the missing file error handler is a ColdFusion page
that has logic to retrieve data from the database based on the URL and
display the appropriate job listing content. I didn't set this up, and
I don't necessarily recommend it, since it is a pain to maintain if
every folder has this type of custom setup.

As an alternative, I recommend setting up a site-wide 404 error
handler that does what you need to do. This does need to be set up in
the Web server, since the pages you are requesting are not cfm pages,
so the CF 404 error handler specified in CF admin is not called into
action. But it is easier to set up a single 404 error handler for the
entire site than to set up one for each directory.

You could limit the custom 404 handler to a specific directory if you
set up your site with a special base directory, such as
www.site.com/r/new-inventory, where "r" secretly means redirect and
has special code to handle all the missing files that are detected in
that directory.

At some point, you will have to configure the Web server. ColdFusion
only handles .cfm requests by default, so any missing files with no
..cfm on the end are not handled by CF unless you configure the Web
server to pass these off to CF.

I see no problem using the 404 handler to do this, as long as you code
it correctly. My 404 handlers are usually very involved and correct
for most common mistakes and misspellings.

Good luck,
Mike Chabot

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272893
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