<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: .htaccess Redirect a Directory to a Subdomain and Force WWW</title>
	<atom:link href="http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/</link>
	<description>web development, photography, tutorials and adventure</description>
	<lastBuildDate>Wed, 25 Aug 2010 05:58:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Apache: redirect to subdomain via .htaccess &#171; Willing wheels</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2707</link>
		<dc:creator>Apache: redirect to subdomain via .htaccess &#171; Willing wheels</dc:creator>
		<pubDate>Wed, 21 Apr 2010 23:17:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2707</guid>
		<description>&lt;p&gt;[...] http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/ [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/" rel="nofollow">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/</a> [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Rocky</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2692</link>
		<dc:creator>Rocky</dc:creator>
		<pubDate>Fri, 09 Apr 2010 03:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2692</guid>
		<description>&lt;p&gt;Hey, this worked great. My damn hosting company wanted to charge $5 a month for a subdomain.  Thanks a lot :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey, this worked great. My damn hosting company wanted to charge $5 a month for a subdomain.  Thanks a lot :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ASN5</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2653</link>
		<dc:creator>ASN5</dc:creator>
		<pubDate>Thu, 11 Mar 2010 03:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2653</guid>
		<description>&lt;p&gt;Hey admin...&lt;/p&gt;

&lt;p&gt;Sorry to be a pain, but the two extra lines in there are my actual directories:&lt;/p&gt;

&lt;p&gt;RewriteCond %{REQUEST_URI} !^/(transfers&#124;transfers/.*)$&lt;/p&gt;

&lt;p&gt;RewriteCond %{REQUEST_URI} !^/(subject&#124;subject/.*)$&lt;/p&gt;

&lt;p&gt;If you&#039;d whack those out it would probably make it clearer for your following.  Same thing for the extra &quot;BEGIN WordPress&quot; and &quot;END WordPress&quot; that are outside the code box.&lt;/p&gt;

&lt;p&gt;BTW, I&#039;ve just started hacking on jQuery, so keep the tips coming on that! And while I&#039;m at it, an all-encompassing thanks is in order for generally sharing your work.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;ASN5&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey admin&#8230;</p>

<p>Sorry to be a pain, but the two extra lines in there are my actual directories:</p>

<p>RewriteCond %{REQUEST_URI} !^/(transfers|transfers/.*)$</p>

<p>RewriteCond %{REQUEST_URI} !^/(subject|subject/.*)$</p>

<p>If you&#8217;d whack those out it would probably make it clearer for your following.  Same thing for the extra &#8220;BEGIN WordPress&#8221; and &#8220;END WordPress&#8221; that are outside the code box.</p>

<p>BTW, I&#8217;ve just started hacking on jQuery, so keep the tips coming on that! And while I&#8217;m at it, an all-encompassing thanks is in order for generally sharing your work.</p>

<p>Regards,</p>

<p>ASN5</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ASN5</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2649</link>
		<dc:creator>ASN5</dc:creator>
		<pubDate>Wed, 10 Mar 2010 02:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2649</guid>
		<description>&lt;p&gt;To answer my own question...&lt;/p&gt;

&lt;p&gt;BEGIN WordPress&lt;/p&gt;

&lt;pre&gt;
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(directory&#124;directory/.*)$
RewriteCond %{REQUEST_URI} !^/(nutherdirectory&#124;nutherdirectory/.*)$
RewriteCond %{REQUEST_URI} !^/(transfers&#124;transfers/.*)$
RewriteCond %{REQUEST_URI} !^/(subject&#124;subject/.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress
&lt;/pre&gt;

&lt;p&gt;END WordPress&lt;/p&gt;

&lt;p&gt;Of course, substitute the actual name of your directories for &quot;directory&quot; and &quot;nutherdirectory&quot; and you&#039;re good to go!&lt;/p&gt;

&lt;p&gt;Cheers!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>To answer my own question&#8230;</p>

<p>BEGIN WordPress</p>

<pre>
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(directory|directory/.*)$
RewriteCond %{REQUEST_URI} !^/(nutherdirectory|nutherdirectory/.*)$
RewriteCond %{REQUEST_URI} !^/(transfers|transfers/.*)$
RewriteCond %{REQUEST_URI} !^/(subject|subject/.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress
</pre>

<p>END WordPress</p>

<p>Of course, substitute the actual name of your directories for &#8220;directory&#8221; and &#8220;nutherdirectory&#8221; and you&#8217;re good to go!</p>

<p>Cheers!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ASN5</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2644</link>
		<dc:creator>ASN5</dc:creator>
		<pubDate>Sat, 20 Feb 2010 23:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2644</guid>
		<description>&lt;p&gt;Hey there... good stuff!&lt;/p&gt;

&lt;p&gt;On a slightly different note... does anyone know of a way to bypass Wordpress for a specific directory? That is, my blog is on the root (http://rootdomain.com) and I&#039;d like to be able to access a directory (http://rootdomain.com/directory) without getting a Wordpress 404. &lt;/p&gt;

&lt;p&gt;Any tips would be appreciated.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey there&#8230; good stuff!</p>

<p>On a slightly different note&#8230; does anyone know of a way to bypass WordPress for a specific directory? That is, my blog is on the root (<a href="http://rootdomain.com" rel="nofollow">http://rootdomain.com</a>) and I&#8217;d like to be able to access a directory (<a href="http://rootdomain.com/directory" rel="nofollow">http://rootdomain.com/directory</a>) without getting a WordPress 404. </p>

<p>Any tips would be appreciated.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Suhaimi</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2633</link>
		<dc:creator>Suhaimi</dc:creator>
		<pubDate>Thu, 04 Feb 2010 12:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2633</guid>
		<description>&lt;p&gt;Thank you so VERY much! You are a genius. Save me lots of time.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you so VERY much! You are a genius. Save me lots of time.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Milan</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2588</link>
		<dc:creator>Milan</dc:creator>
		<pubDate>Wed, 30 Dec 2009 15:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2588</guid>
		<description>&lt;p&gt;I have been searching and trying solutions for more than half an hour and finally you code fixed problem.&lt;/p&gt;

&lt;p&gt;Just to note for others that if you want to redirect from second level directory (eg. example.com/sub/sub2), you should edit .htaccess in root and not in /sub directory because it won&#039;t work.&lt;/p&gt;

&lt;p&gt;(btw, you should install Subscribe to Comments plugin for easier tracking of replies on comments)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have been searching and trying solutions for more than half an hour and finally you code fixed problem.</p>

<p>Just to note for others that if you want to redirect from second level directory (eg. example.com/sub/sub2), you should edit .htaccess in root and not in /sub directory because it won&#8217;t work.</p>

<p>(btw, you should install Subscribe to Comments plugin for easier tracking of replies on comments)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Rutek</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2561</link>
		<dc:creator>Rutek</dc:creator>
		<pubDate>Wed, 23 Dec 2009 20:41:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2561</guid>
		<description>&lt;p&gt;Thanks! I&#039;ve searched it for a long time. I hate htaccess. ;-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ve searched it for a long time. I hate htaccess. ;-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Jarvis</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2548</link>
		<dc:creator>Scott Jarvis</dc:creator>
		<pubDate>Mon, 07 Dec 2009 16:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2548</guid>
		<description>&lt;p&gt;This worked great for me, but slows down my site a bit.. &lt;/p&gt;

&lt;p&gt;Also, I&#039;d prefer, as above, to always redirect AWAY from http://www.scottjarvis.com to http://scottjarvis.com, which requires another solution.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This worked great for me, but slows down my site a bit.. </p>

<p>Also, I&#8217;d prefer, as above, to always redirect AWAY from <a href="http://www.scottjarvis.com" rel="nofollow">http://www.scottjarvis.com</a> to <a href="http://scottjarvis.com" rel="nofollow">http://scottjarvis.com</a>, which requires another solution.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: luke</title>
		<link>http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/comment-page-1/#comment-2376</link>
		<dc:creator>luke</dc:creator>
		<pubDate>Wed, 10 Jun 2009 04:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2008/03/11/htaccess-redirect-a-directory-to-a-subdomain-and-force-www/#comment-2376</guid>
		<description>&lt;p&gt;This is cool.. 
1 question..
How to make it the other way around.
In my case here.&lt;/p&gt;

&lt;p&gt;when go to &quot;blog.example.com&quot; it redirects to 
&quot;www.example.com/blog/&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is cool.. 
1 question..
How to make it the other way around.
In my case here.</p>

<p>when go to &#8220;blog.example.com&#8221; it redirects to 
&#8220;www.example.com/blog/&#8221;</p>]]></content:encoded>
	</item>
</channel>
</rss>
