EasyCFM.COM ColdFusion Forums / ASP to CFML / Redirect to HTTPS

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Redirect to HTTPS

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

daveED
08-28-2007 @ 5:11 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Junior Member
Posts: 116
Joined: Sep 2006

Hi,

How do you convert the to coldfusion so if the HTTPS not definded


<% if (String(Request.ServerVariables("HTTPS")) == "off") Response.Redirect("https://www.yoursite.com"); %>

daveED
08-28-2007 @ 6:14 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Junior Member
Posts: 116
Joined: Sep 2006

I will post this because it might help someone regarding this post.

<cfif CGI.HTTPS neq "on">
  <cflocation url="https://#cgi.server_name##cgi.script_name#" addtoken="no">
</cfif>

as above so below
---
Historical Background of Scalar EM Weapons -- Fascinating Read --
http://www.cheniere.org/books/*n*lysis/history.htm


Website Designed and Developed by Pablo Varando.