<?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: Smart HTTP and HTTPS .htaccess Rewrite</title>
	<atom:link href="http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Tue, 18 Jun 2013 10:04:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: vinod</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-2352</link>
		<dc:creator>vinod</dc:creator>
		<pubDate>Fri, 29 Mar 2013 12:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-2352</guid>
		<description><![CDATA[thanks]]></description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinod</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1601</link>
		<dc:creator>vinod</dc:creator>
		<pubDate>Fri, 29 Mar 2013 12:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1601</guid>
		<description><![CDATA[thanks]]></description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: varun khandelwal</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-2345</link>
		<dc:creator>varun khandelwal</dc:creator>
		<pubDate>Tue, 26 Mar 2013 06:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-2345</guid>
		<description><![CDATA[hi ... I want to redirect some specific pages from http to https.. please help.]]></description>
		<content:encoded><![CDATA[<p>hi ... I want to redirect some specific pages from http to https.. please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: varun khandelwal</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1600</link>
		<dc:creator>varun khandelwal</dc:creator>
		<pubDate>Tue, 26 Mar 2013 06:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1600</guid>
		<description><![CDATA[hi ... I want to redirect some specific pages from http to https.. please help.]]></description>
		<content:encoded><![CDATA[<p>hi ... I want to redirect some specific pages from http to https.. please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul harford</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-2340</link>
		<dc:creator>paul harford</dc:creator>
		<pubDate>Wed, 20 Mar 2013 16:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-2340</guid>
		<description><![CDATA[Hi There 

how would i redirect all https to http ? the opposite of above. we have no https on our site but with the new firefox being https by default we wanted to redirect everything to http any suggestions ?
have tried loads of varying rewrite rules etc but nothing seems to work]]></description>
		<content:encoded><![CDATA[<p>Hi There </p>
<p>how would i redirect all https to http ? the opposite of above. we have no https on our site but with the new firefox being https by default we wanted to redirect everything to http any suggestions ?<br />
have tried loads of varying rewrite rules etc but nothing seems to work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul harford</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1599</link>
		<dc:creator>paul harford</dc:creator>
		<pubDate>Wed, 20 Mar 2013 16:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1599</guid>
		<description><![CDATA[Hi There

how would i redirect all https to http ? the opposite of above. we have no https on our site but with the new firefox being https by default we wanted to redirect everything to http any suggestions ?
have tried loads of varying rewrite rules etc but nothing seems to work]]></description>
		<content:encoded><![CDATA[<p>Hi There</p>
<p>how would i redirect all https to http ? the opposite of above. we have no https on our site but with the new firefox being https by default we wanted to redirect everything to http any suggestions ?<br />
have tried loads of varying rewrite rules etc but nothing seems to work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ao2</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-2330</link>
		<dc:creator>ao2</dc:creator>
		<pubDate>Tue, 05 Mar 2013 09:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-2330</guid>
		<description><![CDATA[Don&#039;t use &quot;https&quot; as a global variable, that could rewrite the &quot;$_SERVER[&#039;HTTP&#039;]&quot; content and baffle some https detection code. I&#039;ve seen this.]]></description>
		<content:encoded><![CDATA[<p>Don't use "https" as a global variable, that could rewrite the "$_SERVER['HTTP']" content and baffle some https detection code. I've seen this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ao2</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1598</link>
		<dc:creator>ao2</dc:creator>
		<pubDate>Tue, 05 Mar 2013 09:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1598</guid>
		<description><![CDATA[Don&#039;t use &quot;https&quot; as a global variable, that could rewrite the &quot;$_SERVER[&#039;HTTP&#039;]&quot; content and baffle some https detection code. I&#039;ve seen this.]]></description>
		<content:encoded><![CDATA[<p>Don't use "https" as a global variable, that could rewrite the "$_SERVER['HTTP']" content and baffle some https detection code. I've seen this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskApache</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1597</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Sat, 23 Feb 2013 00:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1597</guid>
		<description><![CDATA[&lt;p&gt;&lt;strong&gt;@Andrew White&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&#039;m glad to hear you were able to get it to work..  This can be quite tricky for sure.&lt;/p&gt;
&lt;p&gt;Nice fix to replace the &lt;code&gt;+&lt;/code&gt; with a &lt;code&gt;*&lt;/code&gt;, I&#039;ve since updated the example.  Many Thanks!&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p><strong>@Andrew White</strong></p>
<p>I'm glad to hear you were able to get it to work..  This can be quite tricky for sure.</p>
<p>Nice fix to replace the <code>+</code> with a <code>*</code>, I've since updated the example.  Many Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew White</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1596</link>
		<dc:creator>Andrew White</dc:creator>
		<pubDate>Mon, 11 Feb 2013 00:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-1596</guid>
		<description><![CDATA[Hi Charles,

Thanks for the great article - I&#039;ve just deployed a version of your solution on a production environment and it&#039;s working smoothly.

Please note once change I had to make to make everything work right - in the SSL match I&#039;ve used an asterisk to match 0 or more characters instead of the plus to match 1 or more. This allows for the direct URL (e.g. just mysite.com.au) to match and catch correctly. In my situation if it doesn&#039;t, the environment &quot;ps&quot; variable ends up empty and it attempts to redirect to a url starting with &quot;://&quot; which it assumes is an internal path.

See &lt;a href=&quot;http://stackoverflow.com/questions/14678919/conditionally-redirecting-traffic-with-mod-rewrite-dependent-on-protocol/14804453#14804453&quot;&gt;this link&lt;/a&gt; for more info.

Thanks!]]></description>
		<content:encoded><![CDATA[<p>Hi Charles,</p>
<p>Thanks for the great article - I've just deployed a version of your solution on a production environment and it's working smoothly.</p>
<p>Please note once change I had to make to make everything work right - in the SSL match I've used an asterisk to match 0 or more characters instead of the plus to match 1 or more. This allows for the direct URL (e.g. just mysite.com.au) to match and catch correctly. In my situation if it doesn't, the environment "ps" variable ends up empty and it attempts to redirect to a url starting with "://" which it assumes is an internal path.</p>
<p>See <a href="http://stackoverflow.com/questions/14678919/conditionally-redirecting-traffic-with-mod-rewrite-dependent-on-protocol/14804453#14804453">this link</a> for more info.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
