Problem/Motivation

Hello! We have a multi-domain Drupal 9 website, using the domain access module : https://www.drupal.org/project/domain

In Drupal 7, there was a contrib module to fill the gap to build xml sitemap for each domain based on the xmlsitemap module.

It does not seem to exist with Drupal 9.

What would be the best way to achieve this using the current xmlsitemap module? Would it be possible to use some of the hooks to override the domains based on active domain (and or check the node belongs to the current domain before adding the link)?

Comments

DavidPetit created an issue. See original summary.

j.b’s picture

Does this module support this :
different XML sitemaps for each domains ?
OR
Is there an alternative module ?

dvmanjunath’s picture

You can use Domain Access Simple XML Sitemap https://www.drupal.org/project/domain_simple_sitemap module with simple_sitemap https://www.drupal.org/project/simple_sitemap. we have used in our project.

renatog’s picture

Status: Active » Reviewed & tested by the community

Yeah, #3 makes sense on that. According to the project page:

Domain Simple XML Sitemap module generates sitemaps for active domains.

Thanks for that @dvmanjunath

renatog’s picture

Status: Reviewed & tested by the community » Fixed

@DavidPetit if it didn't work for you feel free to let us know ok?

Thanks everyone

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

vinay_a’s picture

lindsay.wils’s picture

Has anyone got this module working with Drupal 10 and Domain Access (https://www.drupal.org/project/domain)

There is a Domain specific dropdown on the page for the XML Sitemap settings, but any changes made on any domain just apply to all, so there is no way to set the base URL setting for each domain.

Maybe Im missing something.

I cannot use Simple Sitemap, as this is not ready for D10, there is work in progress, Domain Simple Sitemap still needs work to be update to work v4 of Simple Sitemap and D10.

At a loss here to any solution, very much appreciate any direction from anyone working with Domain Access in D10.

Thank you in advance.

gcouture’s picture

@lindsay.wils
Have you found a solution for a Multi Domain Sitemap for Drupal 10?
I have the same issue with simple sitemap where any changes made on any domain just apply to all.

lindsay.wils’s picture

I have not found a solution yet. The issues you describe I am having with XML Sitemap, are you having the sames issues with Simple XML Sitemap, or did you mean this module?

Im unable to get the modules installed
https://www.drupal.org/project/simple_sitemap
https://www.drupal.org/project/domain_simple_sitemap

Due to dependency issues with D10, so far there seems to be no currently working solution. Which is problem as we are due to launch a site next week, so am going to have to find a temp manual workaround in the meantime.

rifas-ali-pbi’s picture

Also domain simple sitemap needs mandatory rebuild permissions and uses domain access. But when we do it literally means we have to edit each node and choose one of the domain which is not feasible as content editors for each sites are different and they should not have the permission to edit and assign to different domain.