As mentioned in my previous blog post “SiteMap For WordPress MU“, not only did I claimed to get the sitemap for WordPress MU working, I also show you my WordPress Mu at NewsFreez.com.

Now I am going to reveal the steps to get the SiteMap For WordPress MU working for you. Here are the steps:

1. Upgrade your Google XML Sitemaps plugin to 3.1.0.1. or above.

2. Unzip google-sitemap-generator.3.1.0.1.zip.

3. Open sitemap-core.php and find the first second

return $res;

4. Before the above code, add the following code

global $blog_id;
if ($blog_id != 1)
{$res .= ‘wp-content/blogs.dir/’ . $blog_id . ‘/files/’;}

5. Upgrade your WordPress MU to 1.5.1 or above.

6. Unzip wordpress-mu-1.5.1.zip.

7. Open wp-includes/functions.php find

‘htm|html’ => ‘text/html’,

8. After the above code, add the following code

‘xml’ => ‘text/xml’,

9. Open wp-content/blogs.php find

‘htm|html’ => ‘text/html’,

10. After the above code, add the following code

‘xml’ => ‘text/xml’,

11. Open .htacess and find

RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

12. After the above code, all the following code

RewriteRule ^(.*/)?sitemap.xml wp-content/blogs.php?file=sitemap.xml [L]
RewriteRule ^(.*/)?sitemap.xml.gz wp-content/blogs.php?file=sitemap.xml.gz [L]

13 Upload with FTP the unzipped wordpress-mu-1.5.1.zip

14. Upload with FTP the unzipped google-sitemap-generator.3.1.0.1.zip into the wp-content/plugins folder.

15. Login to your main dashboard, go to Site Admin/Options.

16. Under “Upload File Types”, replace this

jpg jpeg png gif mp3 mov avi wmv midi mid pdf

with

jpg jpeg png gif mp3 mov avi wmv midi mid pdf xml xml.gz

17. Activate Google XML Sitemaps. If you are using Plugin Commander, goto Site Admin/Plugin Commander and activate Google XML Sitemaps.

18. Go to Settings/XML Sitemap, under Location of your sitemap file, click on “Custom location”.

19. For “Absolute or relative path to the sitemap file, including name.”, use

/home/xxxxxxx/public_html/wp-content/blogs.dir/1/files/sitemap.xml

20. For “Complete URL to the sitemap file, including name”, use

http://domain.com/sitemap.xml

21. Click on “Update Options” and check your main sitemap.xml.

22. Go to one of the subdomain dashboard, goto Write/Add Media.

23. Click browse, pick any image, click open and upload.

24. Go to Settings/XML Sitemap, under Location of your sitemap file, click on “Automatic detection”.

25. For “Detected Path.”, it should be

/home/xxxxxxx/public_html/wp-content/blogs.dir/x/files/sitemap.xml

26. For “Detected URL”, it should be

http://subdomain.maindomain.com/sitemap.xml

27. Click on “Update Options” and check your subdomain sitemap.xml.

28. Go to Google Webmaster Tools, submit all your sitemaps.

You should get all your sitemap for WordPress MU working by now. Comments are welcome.

Popularity: 6% [?]

Share and Enjoy:
  • E-mail this story to a friend!
  • YahooMyWeb
  • Google
  • Facebook
  • StumbleUpon
  • Technorati
  • del.icio.us
  • Fark
  • Reddit
  • Mixx
  • BlinkList
  • NewsVine
  • Wikio
  • Furl
  • Netvouz
  • Simpy
  • Bumpzee
  • MisterWong
  • Ma.gnolia
  • Global Grind
  • Spurl
  • Pownce
  • Socialogs
  • LinkaGoGo
  • TwitThis
  • Blogsvine
  • Smarking
  • ppnow

Like this post? Subscribe to my RSS feed and get loads more!