<?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: Apache redirect non-www to www while keeping http and https intact</title>
	<atom:link href="http://www.erica.biz/2007/apache-redirect-non-www-to-www-while-keeping-http-and-https-intact/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.erica.biz/2007/apache-redirect-non-www-to-www-while-keeping-http-and-https-intact/</link>
	<description>Erica Douglass, "temporarily retired" after selling a successful business at age 26, writes thought-provoking blog entries challenging you to change your life and daring you to become more successful.</description>
	<pubDate>Sat, 11 Oct 2008 11:07:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Malte</title>
		<link>http://www.erica.biz/2007/apache-redirect-non-www-to-www-while-keeping-http-and-https-intact/#comment-103079</link>
		<dc:creator>Malte</dc:creator>
		<pubDate>Sun, 19 Aug 2007 14:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.slashchick.com/?p=209#comment-103079</guid>
		<description>There's a simpler ruleset which worked for me once upon a time (I actually used it to strip off the www but the needed changes should be obvious):

RewriteRule ^                  -                   [E=via:http]
RewriteCond %{HTTPS}           =on
RewriteRule ^                  -                   [E=via:https]
RewriteCond %{HTTP_HOST}       =www.(msquadrat.de) [NC]
RewriteRule ^(.*)$             %{ENV:via}://%1/$1  [R=301]</description>
		<content:encoded><![CDATA[<p>There&#8217;s a simpler ruleset which worked for me once upon a time (I actually used it to strip off the www but the needed changes should be obvious):</p>
<p>RewriteRule ^                  -                   [E=via:http]<br />
RewriteCond %{HTTPS}           =on<br />
RewriteRule ^                  -                   [E=via:https]<br />
RewriteCond %{HTTP_HOST}       =www.(msquadrat.de) [NC]<br />
RewriteRule ^(.*)$             %{ENV:via}://%1/$1  [R=301]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.erica.biz/2007/apache-redirect-non-www-to-www-while-keeping-http-and-https-intact/#comment-102948</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 18 Aug 2007 10:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.slashchick.com/?p=209#comment-102948</guid>
		<description>Slightly OT: There's just something incredibly sexy about a geek chick.</description>
		<content:encoded><![CDATA[<p>Slightly OT: There&#8217;s just something incredibly sexy about a geek chick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S</title>
		<link>http://www.erica.biz/2007/apache-redirect-non-www-to-www-while-keeping-http-and-https-intact/#comment-102825</link>
		<dc:creator>S</dc:creator>
		<pubDate>Fri, 17 Aug 2007 04:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.slashchick.com/?p=209#comment-102825</guid>
		<description>The trick is to have two separate vhosts with a different rewrite rule in each as follows:

1) for simpli.biz / *.simpli.biz port 80
   - rewrite to https://www.simpli.biz/$1

2) for simpli.biz port 443
   - rewrite to https://www.simpli.biz/$1

That's it.</description>
		<content:encoded><![CDATA[<p>The trick is to have two separate vhosts with a different rewrite rule in each as follows:</p>
<p>1) for simpli.biz / *.simpli.biz port 80<br />
   - rewrite to <a href="https://www.simpli.biz/1" rel="nofollow">https://www.simpli.biz/1</a></p>
<p>2) for simpli.biz port 443<br />
   - rewrite to <a href="https://www.simpli.biz/1" rel="nofollow">https://www.simpli.biz/1</a></p>
<p>That&#8217;s it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
