<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Detecting and redirecting http to https</title>
	<atom:link href="http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/</link>
	<description>Rich Internet Application development</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:10:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: David Levin</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-143123</link>
		<dc:creator>David Levin</dc:creator>
		<pubDate>Tue, 08 Nov 2011 17:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-143123</guid>
		<description>I like your method much better than using CGI variables.  It might be one or two more lines of code but I feel it&#039;s worth it because it gives you more control over the redirect. Nice work. :)</description>
		<content:encoded><![CDATA[<p>I like your method much better than using CGI variables.  It might be one or two more lines of code but I feel it&#8217;s worth it because it gives you more control over the redirect. Nice work. <img src='http://www.chapter31.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ColdFusion Nerd</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-123818</link>
		<dc:creator>ColdFusion Nerd</dc:creator>
		<pubDate>Thu, 16 Dec 2010 17:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-123818</guid>
		<description>Michael, great post!  This came in very handy for me today when I as in a bind.  Pulled it up via Google keyword search and it worked like a charm.  I owe you a coffee.</description>
		<content:encoded><![CDATA[<p>Michael, great post!  This came in very handy for me today when I as in a bind.  Pulled it up via Google keyword search and it worked like a charm.  I owe you a coffee.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sharman</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-119666</link>
		<dc:creator>Michael Sharman</dc:creator>
		<pubDate>Wed, 08 Sep 2010 22:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-119666</guid>
		<description>@Ragdoll - in my example above the performance hit would be tiny, nothing I would ever worry about as it&#039;s really just checking the value of existing variables. That being said we had issues recently using this snippet on railo, but we had a workaround for that.

In your case I&#039;d always load GA code (the new code inside the header) using the example that Google provides. Let them worry about if/when the site is being accessed securely or not.</description>
		<content:encoded><![CDATA[<p>@Ragdoll &#8211; in my example above the performance hit would be tiny, nothing I would ever worry about as it&#8217;s really just checking the value of existing variables. That being said we had issues recently using this snippet on railo, but we had a workaround for that.</p>
<p>In your case I&#8217;d always load GA code (the new code inside the header) using the example that Google provides. Let them worry about if/when the site is being accessed securely or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ragdoll</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-119556</link>
		<dc:creator>Ragdoll</dc:creator>
		<pubDate>Fri, 03 Sep 2010 22:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-119556</guid>
		<description>What&#039;s the performance hit on this? I&#039;d like to detect whether the connection is secure, and if it is, import the secure Google Analytics code, and if it&#039;s not secure, import the regular code.

Is this the best way to do it? I imagine the server will be checking for security when every page loads, and that sounds a bit resource-intensive.</description>
		<content:encoded><![CDATA[<p>What&#8217;s the performance hit on this? I&#8217;d like to detect whether the connection is secure, and if it is, import the secure Google Analytics code, and if it&#8217;s not secure, import the regular code.</p>
<p>Is this the best way to do it? I imagine the server will be checking for security when every page loads, and that sounds a bit resource-intensive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sharman - chapter31 &#187; Detecting https across Railo and ColdFusion Server</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-114072</link>
		<dc:creator>Michael Sharman - chapter31 &#187; Detecting https across Railo and ColdFusion Server</dc:creator>
		<pubDate>Wed, 03 Mar 2010 03:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-114072</guid>
		<description>[...] I had a way of detecting whether page requests were being made via ssl but today I came across a scenario where this doesn&#8217;t work. Let me [...]</description>
		<content:encoded><![CDATA[<p>[...] I had a way of detecting whether page requests were being made via ssl but today I came across a scenario where this doesn&#8217;t work. Let me [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Morehouse</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-110489</link>
		<dc:creator>Joshua Morehouse</dc:creator>
		<pubDate>Thu, 19 Nov 2009 14:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-110489</guid>
		<description>Thanks for this, worked great to redirect some login pages.</description>
		<content:encoded><![CDATA[<p>Thanks for this, worked great to redirect some login pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sharman</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-100937</link>
		<dc:creator>Michael Sharman</dc:creator>
		<pubDate>Wed, 20 May 2009 09:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-100937</guid>
		<description>Not sure what I can tell you except I have it running in multiple production sites! Here is a slightly different version...from a live site:

Inside onRequestStart()
------------------------------------------
&lt;cfscript&gt;
	oRequest = getPageContext().getRequest();
	request.isSecure = oRequest.isSecure();
&lt;/cfscript&gt;

Inside a shopping cart page
------------------------------------------
&lt;cfif NOT request.isSecure&gt;
	&lt;cflocation url=&quot;#application.config.httpsURL#&quot; addtoken=&quot;false&quot;&gt;
&lt;/cfif&gt;</description>
		<content:encoded><![CDATA[<p>Not sure what I can tell you except I have it running in multiple production sites! Here is a slightly different version&#8230;from a live site:</p>
<p>Inside onRequestStart()<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&lt;cfscript&gt;<br />
	oRequest = getPageContext().getRequest();<br />
	request.isSecure = oRequest.isSecure();<br />
&lt;/cfscript&gt;</p>
<p>Inside a shopping cart page<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&lt;cfif NOT request.isSecure&gt;<br />
	&lt;cflocation url=&#8221;#application.config.httpsURL#&#8221; addtoken=&#8221;false&#8221;&gt;<br />
&lt;/cfif&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikos</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-100933</link>
		<dc:creator>Nikos</dc:creator>
		<pubDate>Wed, 20 May 2009 08:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-100933</guid>
		<description>Yeah I&#039;ve put cfif NOT oRequest.isSecure() in but I still get the same problem.

I&#039;ve also cleared my browser cache</description>
		<content:encoded><![CDATA[<p>Yeah I&#8217;ve put cfif NOT oRequest.isSecure() in but I still get the same problem.</p>
<p>I&#8217;ve also cleared my browser cache</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sharman</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-100912</link>
		<dc:creator>Michael Sharman</dc:creator>
		<pubDate>Wed, 20 May 2009 04:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-100912</guid>
		<description>@Nikos - Not sure if this page was caching on an old draft, the 3rd example works fine but you should check that you have

cfif NOT oRequest.isSecure()

Note the &quot;isSecure()&quot;</description>
		<content:encoded><![CDATA[<p>@Nikos &#8211; Not sure if this page was caching on an old draft, the 3rd example works fine but you should check that you have</p>
<p>cfif NOT oRequest.isSecure()</p>
<p>Note the &#8220;isSecure()&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikos</title>
		<link>http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/comment-page-1/#comment-100823</link>
		<dc:creator>Nikos</dc:creator>
		<pubDate>Tue, 19 May 2009 13:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/07/21/detecting-and-redirecting-http-to-https/#comment-100823</guid>
		<description>the 3rd piece of code puts me in an infinite loop</description>
		<content:encoded><![CDATA[<p>the 3rd piece of code puts me in an infinite loop</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: chapter31.nfshost.com @ 2012-02-09 08:54:31 -->
