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" <monty@astutia.com> To: "CF-Talk" <cf-talk@houseoffusion.com> 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 monty@astutia.com > > 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: monty@astutia.com > > >