<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JYSE.COM &#187; sitemap</title>
	<atom:link href="http://jyse.com/tag/sitemap/feed/" rel="self" type="application/rss+xml" />
	<link>http://jyse.com</link>
	<description>do follow stuff</description>
	<lastBuildDate>Tue, 10 Apr 2012 14:46:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to make the Sitemap Plugin work for WordPress mu</title>
		<link>http://jyse.com/2010/02/02/how-to-make-the-sitemap-plugin-work-for-wordpress-mu/</link>
		<comments>http://jyse.com/2010/02/02/how-to-make-the-sitemap-plugin-work-for-wordpress-mu/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 01:48:43 +0000</pubDate>
		<dc:creator>Sliick</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[sitemap]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://jyse.com/?p=111</guid>
		<description><![CDATA[I use wpmu (soon to be named wordpress multisite &#8211; wpms?) for most of my many mini niche sites. It makes it easy to install, backup, and whip up new sites. Arne&#8217;s google sitemap generator is the best sitemap plugin period so rather than use anyone else&#8217;s custom wpmu sitemap solutions, I&#8217;ve opted to hack [...]]]></description>
			<content:encoded><![CDATA[<p>I use wpmu (soon to be named wordpress multisite &#8211; <em>wpms</em>?) for most of my many mini niche sites. It makes it easy to install, backup, and whip up new sites. </p>
<p>Arne&#8217;s google sitemap generator is the best sitemap plugin period so rather than use anyone else&#8217;s custom wpmu sitemap solutions, I&#8217;ve opted to hack Arne&#8217;s. </p>
<p>Way back in 2006, I used to hack the default InitOptions() function to use a manual file location. Nowadays, I find it much easier to just change what it thinks is the default location. </p>
<p><code><br />
function GetHomePath() {<br />
	/* comment everything out and just have the following line */<br />
		return ABSPATH . UPLOADS;<br />
	}</p>
<p></code></p>
<p>Next, I need to make sure that the wordpress upload directory has already been created. </p>
<p><code>	function BuildSitemap() {<br />
		global $wpdb, $posts, $wp_version;<br />
		$this-&gt;Initate();</p>
<p>		//workout what the upload directory for this blog is<br />
$upload_dir = ABSPATH . UPLOADS;<br />
//create the directory if it does not already exist<br />
wp_mkdir_p($upload_dir);</p>
<p>...<br />
</code><br />
That&#8217;s it. Simple. Now just redirect all requests for the sitemap to the generated file location. Here I use .htaccess files<br />
<code><br />
#sitemap<br />
RewriteRule ^sitemap.xml$ wp-content/blogs.php?file=sitemap.xml [L]<br />
RewriteRule ^sitemap.xml.gz$ wp-content/blogs.php?file=sitemap.xml.gz [L]<br />
</code></p>
<p>That&#8217;s it. Works for Google Sitemap Generator  v3.2.2 </p>
]]></content:encoded>
			<wfw:commentRss>http://jyse.com/2010/02/02/how-to-make-the-sitemap-plugin-work-for-wordpress-mu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

