Try something like:

<cfif cgi.server_port is "80">
   <cflocation url="https://yourserver.com/#cgi.script_name#?cgi.query_string#";
</cfif>

HTH,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - The Intelligent Mail Server


----- Original Message ----- 
From: "Chris Montgomery" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 9:56 AM
Subject: How to Force https vs http


> Howdy all,
> 
> Quick question....is it possible to have a URL redirect to a secure URL? For
> example, someone enters http://www.xxxblahxxx.com/secure/securepage.cfm
> instead of  https://www.xxxblahxxx.com/secure/securepage.cfm. How do you
> force a redirect to the secure URL? Is that a server function, or can it be
> done programmatically?
> 
> TIA,
> 
> Chris Montgomery             [EMAIL PROTECTED]
> 
> Web Development & Consulting http://www.astutia.com
> Allaire Sales & Consulting Partner
> 210-490-3249/888-745-7603    Fax 210-490-4692
> Instant Messaging:
> AIM: astutiaweb; ICQ: 7381282; MSN: [EMAIL PROTECTED]
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to