Yes, on one of my shopping apps, I put the following right in my 
onRequestStart method:

<cfif cgi.https is "off">
       <!--- redirect to secure connection --->
       <cfset go = "https://"; & cgi.server_name & cgi.path_info />
       <cfif len(cgi.query_string)>
           <cfset go = go & "?" & cgi.query_string />
       </cfif>
       <cflocation url="#go#" addtoken="No" />
<cfelse>
       <cfreturn true />
</cfif>

That just lets the CGI handle all the pathing etc.
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323577
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to