CFlocation in a Site-wide Error Handler with CFMX and caffeine

2003-02-18 Thread Mark W. Breneman
Am I hopped up on too much caffeine this AM, or is this a change in MX with
using Site-wide Error Handlers.

I have two sites (same client different sites) hosted on the same server.  I
need to have different display error pages for each client but I would
like to use the same Error Handler page and simply CFlocation off to the
correct display error page.

I do not seem to be able to use a CFlocation in the .cfm file that have
defined as a Site-wide Error Handler in the CF admin.

Does anyone know if one of the other methods will work?

cfoutput
scriptlocation='#myURL#';/script
/cfoutput

Or

cfheader statuscode=301
cfheader name=Location value=http://domain/;

Thanks
Mark W. Breneman
-Macromedia Certified ColdFusion Developer
-Network / Web Server Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: CFlocation in a Site-wide Error Handler with CFMX and caffeine

2003-02-18 Thread Jochem van Dieten
Mark W. Breneman wrote:
 
 cfheader statuscode=301
 cfheader name=Location value=http://domain/;

I am not familiar with your problem, but *don't* use a 301 for an error-
redirect. A 301 is a permanent redirect which a browser is allowed to
cache. Use a 302 or if a change from POST to GET is required and the
browser sends headers indicating HTTP/1.1 capabilities a 307.

Jochem

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4