Multi domain website and XML sitemap in Drupal 9

Created on 30 April 2021, about 3 years ago
Updated 4 October 2023, 9 months ago

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)?

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡°Hong Kong DavidPetit

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada lindsay.wils

    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.

  • πŸ‡¨πŸ‡¦Canada gcouture@equipenutrition.ca

    @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.

  • πŸ‡¨πŸ‡¦Canada lindsay.wils

    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.

Production build 0.69.0 2024