<?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: How to Auto-Redirect to a SSL-secured Site in IIS</title>
	<atom:link href="http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/</link>
	<description></description>
	<lastBuildDate>Wed, 21 Mar 2012 14:32:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Trevor</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-20850</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Wed, 28 Sep 2011 04:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-20850</guid>
		<description>Awesome. Thank you for the clear and concise explanation.</description>
		<content:encoded><![CDATA[<p>Awesome. Thank you for the clear and concise explanation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-5285</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 15 Dec 2010 09:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-5285</guid>
		<description>Thanks, this was just what I was looking for:-)

Cheers 
Andy</description>
		<content:encoded><![CDATA[<p>Thanks, this was just what I was looking for:-)</p>
<p>Cheers<br />
Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Kovacs</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-216</link>
		<dc:creator>James Kovacs</dc:creator>
		<pubDate>Mon, 05 Jan 2009 03:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-216</guid>
		<description>Sorry, but I&#039;ve had to close down comments on this post as it is being spammed by a bot. </description>
		<content:encoded><![CDATA[<p>Sorry, but I&#8217;ve had to close down comments on this post as it is being spammed by a bot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Homer</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-215</link>
		<dc:creator>John Homer</dc:creator>
		<pubDate>Thu, 03 Apr 2008 18:54:14 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-215</guid>
		<description>One other thing. When using custom error pages, you really need to understand the following. Read closely as there are a lot of caveats in there. Also, I&#039;m pretty sure this applies to IE7/Vista also.

http://support.microsoft.com/?kbid=218155

You can also find more information here:

http://www.issociate.de/board/post/454180/SSL_redirection_problem.html

Cheers,
John</description>
		<content:encoded><![CDATA[<p>One other thing. When using custom error pages, you really need to understand the following. Read closely as there are a lot of caveats in there. Also, I&#8217;m pretty sure this applies to IE7/Vista also.</p>
<p><a href="http://support.microsoft.com/?kbid=218155" rel="nofollow">http://support.microsoft.com/?kbid=218155</a></p>
<p>You can also find more information here:</p>
<p><a href="http://www.issociate.de/board/post/454180/SSL_redirection_problem.html" rel="nofollow">http://www.issociate.de/board/post/454180/SSL_redirection_problem.html</a></p>
<p>Cheers,<br />
John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Homer</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-214</link>
		<dc:creator>John Homer</dc:creator>
		<pubDate>Thu, 03 Apr 2008 17:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-214</guid>
		<description>Also, this solution can be applied to subfolders and even individual files as they all can have Custom Errors. i slo noticed my javascript is doing a stright replace on &quot;http&quot;. it&#039;s posible that the URL may have that string embedded elsewhere, in hich case, it would munge the URL (bad). So someone may want to take this javascript and run with it a little further but the basic concept is proven.
</description>
		<content:encoded><![CDATA[<p>Also, this solution can be applied to subfolders and even individual files as they all can have Custom Errors. i slo noticed my javascript is doing a stright replace on &quot;http&quot;. it&#8217;s posible that the URL may have that string embedded elsewhere, in hich case, it would munge the URL (bad). So someone may want to take this javascript and run with it a little further but the basic concept is proven.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Homer</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-213</link>
		<dc:creator>John Homer</dc:creator>
		<pubDate>Thu, 03 Apr 2008 17:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-213</guid>
		<description>We did the same using pure IIS and only 1 website. Here&#039;s how:

1) Make a copy of the 403.4 error page (don&#039;t trash the original) located at C:\WINDOWS\help\iisHelp\common\403-4.htm
2) Name this copy something like 403-4.redirect.htm and leave in the same folder.
3) Modify the copy and include the following javascript (asp won&#039;t work):

This goes just below the line that says &#039;&lt;body bgcolor=&quot;FFFFFF&quot;&gt;&#039;

&lt;script type=&quot;text/javascript&quot;&gt; 
	loc = new String(window.location);
	loc = loc.replace(&quot;http&quot;, &quot;https&quot;);
	document.location.href = loc;
&lt;/script&gt;

4) In IIS manager, open the properties for the site you&#039;re configuring and select the Custom Errors tab.
5) Modify the 403.4 error to point to your modified file and click OK.
6) Sit back and enjoy!

Now when any user hits the site using HTTP, the error page will run the javascript and redirect them to the HTTPS URL while preserving the URL and query string.</description>
		<content:encoded><![CDATA[<p>We did the same using pure IIS and only 1 website. Here&#8217;s how:</p>
<p>1) Make a copy of the 403.4 error page (don&#8217;t trash the original) located at C:\WINDOWS\help\iisHelp\common\403-4.htm<br />
2) Name this copy something like 403-4.redirect.htm and leave in the same folder.<br />
3) Modify the copy and include the following javascript (asp won&#8217;t work):</p>
<p>This goes just below the line that says &#8216;&lt;body bgcolor=&quot;FFFFFF&quot;&gt;&#8217;</p>
<p>&lt;script type=&quot;text/javascript&quot;&gt;<br />
	loc = new String(window.location);<br />
	loc = loc.replace(&quot;http&quot;, &quot;https&quot;);<br />
	document.location.href = loc;<br />
&lt;/script&gt;</p>
<p>4) In IIS manager, open the properties for the site you&#8217;re configuring and select the Custom Errors tab.<br />
5) Modify the 403.4 error to point to your modified file and click OK.<br />
6) Sit back and enjoy!</p>
<p>Now when any user hits the site using HTTP, the error page will run the javascript and redirect them to the HTTPS URL while preserving the URL and query string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Kovacs</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-212</link>
		<dc:creator>James Kovacs</dc:creator>
		<pubDate>Thu, 07 Feb 2008 21:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-212</guid>
		<description>@Ruffy - You can use the exact same trick for virtual directories. Create two websites as above, a secure one requiring SSL on 443 (and some high numbered http port like 8888) and a regular one on port 80. Rather than specifying the redirect from the web root, specify it on the virtual directory. For example, if you browse to http://server.example.com/securedapp/SomePage.aspx, the redirect would be configured for https://server.example.com/securedapp. Note that we include the virtual directory name in the redirect. Hope that helps.</description>
		<content:encoded><![CDATA[<p>@Ruffy &#8211; You can use the exact same trick for virtual directories. Create two websites as above, a secure one requiring SSL on 443 (and some high numbered http port like 8888) and a regular one on port 80. Rather than specifying the redirect from the web root, specify it on the virtual directory. For example, if you browse to <a href="http://server.example.com/securedapp/SomePage.aspx" rel="nofollow">http://server.example.com/securedapp/SomePage.aspx</a>, the redirect would be configured for <a href="https://server.example.com/securedapp" rel="nofollow">https://server.example.com/securedapp</a>. Note that we include the virtual directory name in the redirect. Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruffy Chris Loquia</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-211</link>
		<dc:creator>Ruffy Chris Loquia</dc:creator>
		<pubDate>Tue, 05 Feb 2008 12:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-211</guid>
		<description>Hi All,

I would like to ask what is the solution for redirecting just a sub page to https? I have a site with a lot of applications that can be accessed via: http://servername/appname. Each of them works independently. I have one application which needs to be in https and I want to auto redirect only that into https so that when a user entered http://servername/securedapp it will redirect to http://servername/securedapp and the rest will remain the same. Can this be achieved through IIS configuration? Done anyone has sound advice. 

I will appreciate if you will email the answers to me directly at ruffy.loquia(at)gmail.com

Thanks a lot,
Ruffy Chris</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I would like to ask what is the solution for redirecting just a sub page to https? I have a site with a lot of applications that can be accessed via: <a href="http://servername/appname" rel="nofollow">http://servername/appname</a>. Each of them works independently. I have one application which needs to be in https and I want to auto redirect only that into https so that when a user entered <a href="http://servername/securedapp" rel="nofollow">http://servername/securedapp</a> it will redirect to <a href="http://servername/securedapp" rel="nofollow">http://servername/securedapp</a> and the rest will remain the same. Can this be achieved through IIS configuration? Done anyone has sound advice. </p>
<p>I will appreciate if you will email the answers to me directly at ruffy.loquia(at)gmail.com</p>
<p>Thanks a lot,<br />
Ruffy Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Drewer</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-210</link>
		<dc:creator>Luke Drewer</dc:creator>
		<pubDate>Mon, 29 Oct 2007 19:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-210</guid>
		<description>Will have to agree with Lec! saved me a lot of messing about.. it does what it says on the tin!

Many thanks,
Luke.</description>
		<content:encoded><![CDATA[<p>Will have to agree with Lec! saved me a lot of messing about.. it does what it says on the tin!</p>
<p>Many thanks,<br />
Luke.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lec</title>
		<link>http://jameskovacs.com/2007/05/09/how-to-autoredirect-to-a-sslsecured-site-in-iis/comment-page-1/#comment-209</link>
		<dc:creator>Lec</dc:creator>
		<pubDate>Thu, 21 Jun 2007 19:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://jameskovacs.com/2007/05/10/How+To+AutoRedirect+To+A+SSLsecured+Site+In+IIS#comment-209</guid>
		<description>Awesome! thank you!</description>
		<content:encoded><![CDATA[<p>Awesome! thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

