Redirect to https
Ok, I've searched thru the forums but I'm still having some problems getting this to work. Here's the code below that I'm using:
<!--- set up the getRequest method for easy access --->
<cfset oRequest = getPageContext().getRequest() />
<cfif NOT oRequest.isSecure()>
<cflocation url="https://#oRequest.getServerName()##oRequest.getRequestURI()#" addtoken="false" />
</cfif>
When using this code, the page gets stuck in a continuous loop trying to load. I want to make it so that if anyone tries to load the page using http, they will get redirected to the same page but loaded thru https. Any ideas on what I'm doing wrong? I'm working with a blank CF page at the moment while I try to get it figured out.
