<?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: Javascript: Auto Redirect to SSL page</title>
	<atom:link href="http://amit.chakradeo.net/2004/02/20/javascript-auto-redirect-to-ssl-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://amit.chakradeo.net/2004/02/20/javascript-auto-redirect-to-ssl-page/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=javascript-auto-redirect-to-ssl-page</link>
	<description>Stay Hungry. Stay Foolish!</description>
	<lastBuildDate>Tue, 07 Sep 2010 18:10:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: amit</title>
		<link>http://amit.chakradeo.net/2004/02/20/javascript-auto-redirect-to-ssl-page/comment-page-1/#comment-90925</link>
		<dc:creator>amit</dc:creator>
		<pubDate>Wed, 04 Nov 2009 14:58:26 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/2004/02/20/javascript-auto-redirect-to-ssl-page/#comment-90925</guid>
		<description>I also like the version suggested by Sangam. document.location is now deprecated and it is suggested to use window.location which is more portable.

--Amit</description>
		<content:encoded><![CDATA[<p>I also like the version suggested by Sangam. document.location is now deprecated and it is suggested to use window.location which is more portable.</p>
<p>&#8211;Amit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blarg</title>
		<link>http://amit.chakradeo.net/2004/02/20/javascript-auto-redirect-to-ssl-page/comment-page-1/#comment-90914</link>
		<dc:creator>blarg</dc:creator>
		<pubDate>Wed, 04 Nov 2009 14:02:11 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/2004/02/20/javascript-auto-redirect-to-ssl-page/#comment-90914</guid>
		<description>Sangam&#039;s function works a little better for me in an app that has session IDs - it redirects and keeps the session. I don&#039;t know why Amit&#039;s initial script didn&#039;t. Maybe - 

 &quot;https://secure.you.tld&quot; + document.location.pathname 

doesn&#039;t redirect the entire URL.

Thanks,
SM</description>
		<content:encoded><![CDATA[<p>Sangam&#8217;s function works a little better for me in an app that has session IDs &#8211; it redirects and keeps the session. I don&#8217;t know why Amit&#8217;s initial script didn&#8217;t. Maybe &#8211; </p>
<p> &#8220;https://secure.you.tld&#8221; + document.location.pathname </p>
<p>doesn&#8217;t redirect the entire URL.</p>
<p>Thanks,<br />
SM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sangam Singh</title>
		<link>http://amit.chakradeo.net/2004/02/20/javascript-auto-redirect-to-ssl-page/comment-page-1/#comment-86714</link>
		<dc:creator>Sangam Singh</dc:creator>
		<pubDate>Wed, 02 Sep 2009 17:55:32 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/2004/02/20/javascript-auto-redirect-to-ssl-page/#comment-86714</guid>
		<description>function redirectSecure()
    {
    	if (document.location.protocol != &quot;https:&quot;){
	    	var oldURL = window.location.hostname + window.location.pathname+window.location.search;
    		var newURL = &quot;https://&quot; + oldURL;
    		window.location = newURL;
    	}
    }
    redirectSecure(); 
</description>
		<content:encoded><![CDATA[<p>function redirectSecure()<br />
    {<br />
    	if (document.location.protocol != &#8220;https:&#8221;){<br />
	    	var oldURL = window.location.hostname + window.location.pathname+window.location.search;<br />
    		var newURL = &#8220;https://&#8221; + oldURL;<br />
    		window.location = newURL;<br />
    	}<br />
    }<br />
    redirectSecure();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn</title>
		<link>http://amit.chakradeo.net/2004/02/20/javascript-auto-redirect-to-ssl-page/comment-page-1/#comment-81217</link>
		<dc:creator>Martijn</dc:creator>
		<pubDate>Thu, 11 Jun 2009 08:11:19 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/2004/02/20/javascript-auto-redirect-to-ssl-page/#comment-81217</guid>
		<description>Thanks! This is just the code snippet I needed. :)</description>
		<content:encoded><![CDATA[<p>Thanks! This is just the code snippet I needed. <img src='http://amit.chakradeo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
