<?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"
	>
<channel>
	<title>Comments on: Smart HTTP and HTTPS RewriteRule Redirects</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>Web Development</description>
	<pubDate>Sun, 20 Jul 2008 18:22:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Traductor</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-42567</link>
		<dc:creator>Traductor</dc:creator>
		<pubDate>Tue, 24 Jun 2008 18:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-42567</guid>
		<description>thanks for that rewrite rules</description>
		<content:encoded><![CDATA[<p>thanks for that rewrite rules</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burke</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-40555</link>
		<dc:creator>Burke</dc:creator>
		<pubDate>Sun, 11 May 2008 01:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-40555</guid>
		<description>I was looking for a way to write a RewriteRule that would work for both HTTP and HTTPS requests -- i.e., allowing either SSL and non-SSL access to the same site without having to write the RewriteRules twice.  Your HTTP/HTTPS rewrite code was a great tip, but couldn't it be simpler?  Here's what's working for me:


&lt;pre&gt;RewriteCond %{HTTPS} on&lt;br /&gt;
RewriteRule .* - [env=https:s]&lt;br /&gt;
&#160;&lt;br /&gt;
# redirect urls with index.html to folder&lt;br /&gt;
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.html\ HTTP/ [NC]&lt;br /&gt;
RewriteRule ^(.*/)index\.html$ http%{ENV:https}://%{SERVER_NAME}$1 [R=301,L]&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>I was looking for a way to write a RewriteRule that would work for both HTTP and HTTPS requests &#8212; i.e., allowing either SSL and non-SSL access to the same site without having to write the RewriteRules twice.  Your HTTP/HTTPS rewrite code was a great tip, but couldn&#8217;t it be simpler?  Here&#8217;s what&#8217;s working for me:</p>
<pre>RewriteCond %{HTTPS} on
RewriteRule .* - [env=https:s]
&nbsp;
# redirect urls with index.html to folder
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.html\ HTTP/ [NC]
RewriteRule ^(.*/)index\.html$ http%{ENV:https}://%{SERVER_NAME}$1 [R=301,L]</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: ace</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-33428</link>
		<dc:creator>ace</dc:creator>
		<pubDate>Thu, 03 Jan 2008 10:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comment-33428</guid>
		<description>Hey there! I just installed an &lt;strong&gt;ssl certificate&lt;/strong&gt; on my site and:
&lt;ol&gt;
&lt;li&gt;thanks for posting the http to https rewrite&lt;/li&gt;
&lt;li&gt;I was also informed of this two liner:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;br /&gt;
RewriteCond %{SERVER_PORT} =80&lt;br /&gt;
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI}&lt;br /&gt;
&lt;/pre&gt;
but I really don't know which to use or why i should use either. 

Also, does using the rewrite to go from &lt;strong&gt;http to https&lt;/strong&gt; mess up anything with google searches? sitemaps? etc.?


Thanks in advance,

ACE</description>
		<content:encoded><![CDATA[<p>Hey there! I just installed an <strong>ssl certificate</strong> on my site and:</p>
<ol>
<li>thanks for posting the http to https rewrite</li>
<li>I was also informed of this two liner:</li>
</ol>
<pre>
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*)$ <a href="https://%" rel="nofollow">https://%</a>{SERVER_NAME}%{REQUEST_URI}
</pre>
<p>but I really don&#8217;t know which to use or why i should use either. </p>
<p>Also, does using the rewrite to go from <strong>http to https</strong> mess up anything with google searches? sitemaps? etc.?</p>
<p>Thanks in advance,</p>
<p>ACE</p>
]]></content:encoded>
	</item>
</channel>
</rss>
