<?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: Migrating Directory Structures of Existing Blogs into a WordPress 3.0 Network</title>
	<atom:link href="http://martyspellerberg.com/2010/07/migrating-directory-structures-of-existing-blogs-into-a-wordpress-3-0-network/feed/" rel="self" type="application/rss+xml" />
	<link>http://martyspellerberg.com/2010/07/migrating-directory-structures-of-existing-blogs-into-a-wordpress-3-0-network/</link>
	<description>I provide online strategy and implementation to artists and institutions.</description>
	<lastBuildDate>Thu, 10 May 2012 10:50:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andrew Nacin</title>
		<link>http://martyspellerberg.com/2010/07/migrating-directory-structures-of-existing-blogs-into-a-wordpress-3-0-network/#comment-157</link>
		<dc:creator>Andrew Nacin</dc:creator>
		<pubDate>Sat, 31 Jul 2010 17:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://martyspellerberg.com/?p=814#comment-157</guid>
		<description>Tested this time. Works like a charm. Just as long as you include it before the rewrite rules redirect all confirmed files and directories to nothing and stop all additional rewriting with [L]. My example .htaccess file is for subdirectories, but the install was also serving multiple subdomains (each being a network). So in this case I wanted test-only to only be accessible from the test subdomain. Everything else in the test-only directory was then redirected to index.php.

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{HTTP_HOST} !^test\.mysite\.com
RewriteRule ^test-only/(.*) index.php [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content&#124;admin&#124;includes).*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]</description>
		<content:encoded><![CDATA[<p>Tested this time. Works like a charm. Just as long as you include it before the rewrite rules redirect all confirmed files and directories to nothing and stop all additional rewriting with [L]. My example .htaccess file is for subdirectories, but the install was also serving multiple subdomains (each being a network). So in this case I wanted test-only to only be accessible from the test subdomain. Everything else in the test-only directory was then redirected to index.php.</p>
<p>RewriteEngine On<br />
RewriteBase /<br />
RewriteRule ^index\.php$ &#8211; [L]</p>
<p># uploaded files<br />
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]</p>
<p># add a trailing slash to /wp-admin<br />
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]</p>
<p>RewriteCond %{HTTP_HOST} !^test\.mysite\.com<br />
RewriteRule ^test-only/(.*) index.php [L]</p>
<p>RewriteCond %{REQUEST_FILENAME} -f [OR]<br />
RewriteCond %{REQUEST_FILENAME} -d<br />
RewriteRule ^ &#8211; [L]<br />
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]<br />
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]<br />
RewriteRule . index.php [L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Nacin</title>
		<link>http://martyspellerberg.com/2010/07/migrating-directory-structures-of-existing-blogs-into-a-wordpress-3-0-network/#comment-156</link>
		<dc:creator>Andrew Nacin</dc:creator>
		<pubDate>Sat, 31 Jul 2010 17:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://martyspellerberg.com/?p=814#comment-156</guid>
		<description>WordPress doesn&#039;t really like symlinks because many PHP functions don&#039;t like symlinks.

Case 1 is rather easy to achieve with a rewrite rule. Entirely untested, but something along these lines should work -- in a nutshell, you can include HTTP_HOST in mod_rewrite conditionals pretty easily.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^thedomain\.com
RewriteRule /foo/(.*) index.php [L]</description>
		<content:encoded><![CDATA[<p>WordPress doesn&#8217;t really like symlinks because many PHP functions don&#8217;t like symlinks.</p>
<p>Case 1 is rather easy to achieve with a rewrite rule. Entirely untested, but something along these lines should work &#8212; in a nutshell, you can include HTTP_HOST in mod_rewrite conditionals pretty easily.</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^thedomain\.com<br />
RewriteRule /foo/(.*) index.php [L]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

