Currently we have our Drupal installation at www.domain/blog and we are using XML sitemap module to manage the sitemap of our whole domain to avoid having to manage multiple sitemaps. At 5.x, we were able to add any URL to the sitemap, allowing us to add some URL's like www.domain.com/hello whereas our Drupal site was installed at www.domain.com/blog.

This however is not possible with the 2.x version since we get the preffix of the Drupal installation directory.

Is it possible to allow any URL to be included manually? If not, maybe you guys could preffix the domain only.

Comments

dave reid’s picture

Status: Active » Closed (works as designed)

If your sitemap is at http://example.com/blog/sitemap.xml, then adding other URLs that are not 'inside' the Drupal install/folder is not allowed under the sitemaps.org protocol:

The location of a Sitemap file determines the set of URLs that can be included in that Sitemap. A Sitemap file located at http://example.com/catalog/sitemap.xml can include any URLs starting with http://example.com/catalog/ but can not include URLs starting with http://example.com/images/.

What I'd recommend for you is create your own manual sitemap at the root http://example.com/sitemap.xml that lists the things you want to list outside of the Drupal install and then in your root's http://example.com/robots.txt file add Sitemap directives to point to both of the sitemaps:

Sitemap: http://example.com/sitemap.xml
Sitemap: http://example.com/blog/sitemap.xml

Other than that, there is nothing that the module can do, since it follows the protocol. If you want to add custom links that *are* inside the Drupal folder/install, you can enable the XML sitemap custom module to add your own custom links.

See
http://sitemaps.org/protocol.php#location
http://www.sitemaps.org/protocol.php#submit_robots

hixster’s picture

Does this also stand for sub domains???
We have 2 sites running at:

subdomain1.mysite.com
subdomain2.mysite.com

Would like to have links to both in one sitemap.xml but can't do that because of the hardcoded base URL?