Posted by spangaroo on April 13, 2010 at 2:47pm
My apologies in advance if this has been answered somewhere already.
I did a few searches and found a couple of threads that might be related.
Unique sitemap.xml files for Drupal Multi-site setup
http://hellodrupal.org/content/unique-sitemapxml-files-drupal-multi-site...
Multi-Site installation serves wrong sitemap
http://drupal.org/node/465270
The other day mig5 mentioned that the DocumentRoot is the Platform directory. If I have a couple of Sites under a single Platform, and the sitemap.xml needs to be in the site root...this is where things get a little murky.
I'm curious to know how do you manage different sitemap.xml files in Aegir?
Comments
Try XML sitemap module
We are using the XML sitemap module (http://drupal.org/project/xmlsitemap) to create and submit our sitemap to most of the included search providers. This appear to publish the sitemap.xml at the root of your site and probably works for a multi-site setup (I assume the module hooks into the URL to serve up the page).
-Tim
Sorry...
...I responded to the thread before actually clicking through your links, so I guess the XML sitemap module won't work?
In that case, you could do a bit of hacking and modify .drush/provision/web_server/provision_apache_vhost.tpl.php to include the suggested rewrite line from your first link. This is not a good solution going forward because you are modifying the provision code directly instead of extending it or submitting a patch, but it's a good start and will do what you want.
-Tim
Did I read the xmlsitemap issue wrong?
I read the issue with xmlsitemap being due to shared files directory. Using multisite with separate files directories was implied to work?
Hi jamiet, thanks for your
Hi jamiet, thanks for your comment. There's some chatter here that mentions separate file directories: http://drupal.org/node/194738 But that seems to be for Drupal 5 so I'm not sure if it still applies.
Then I found this:
Integrate with Domain Access
http://drupal.org/node/534170
It's more recent and there seems to be some progress but I'm not exactly sure.
Anyone have any tips or guidance if for deploying multisite sitemaps in Aegir? If the solution isn't too difficult to get working, I have no problem helping contribute to the project's documentation.
easy fix?
Okay, so after thinking about my setup for a while, I realized that all I needed to do was change where I put the module.
When I posted the question above, I had mistakenly installed the xmlsitemap module here: /var/aegir/platforms/drupal-6.17/sites/all/modules. I generally do this so other sites can share the same modules but now it's obvious that xmlsitemaps can't be shared.
So I installed the xmlsitemap module here: /var/aegir/platforms/drupal-6.17/sites/mydomain.com/modules and then my sitemap was submitted to the search engines correctly and it shows up at http://mydomain.com/sitemap.xml
So if you've ever had a big duh moment, then now you know how I feel. :)
Delayed Followup Question
I can understand that a sitemap cannot be shared but why can't the module be in the shared directory and accessed by all sites? That doesn't make sense to me.
Tyler Smith
Developer