The XML Sitemap module seems to be very buggy and only minimally maintained. The Simple XML Sitemap may be a more viable alternative for the foreseeable future.
https://www.drupal.org/project/simple_sitemap

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ben Finklea created an issue. See original summary.

gbyte’s picture

Good idea, feel free to ping me if you need any support from my side in regards to simple_sitemap.

thejimbirch’s picture

+1

Dave Reid’s picture

FYI XmlSitemap is still active and has a lot of the bugginess fixed in the latest releases.

apaderno’s picture

The suggestion could also be to use XML sitemap or Simple Sitemap.

thejimbirch’s picture

I was thinking the same thing as @kiamlaluno, Install An XML Sitemap module.

I don't see how that could be done easily in the code. since the commands are dynamically generated.

Attached is a patch that replaces XML Sitemap with Simple Sitemap.

thejimbirch’s picture

Status: Active » Needs review
sean_e_dietrich’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
292.91 KB

Patch applies successfully. Marking RTBC. I also agree that using the Simple Sitemap module is preferred right now as I don't feel the 8.x version of Drupal XMLSitemap is stable enough.

apaderno’s picture

Considering that the list makes reference to book pages, should not the suggestion given from the module match what that book page says? It doesn't make sense for the module to suggest a module, with a reference to a book page that suggests the other module.

Did anybody look at Drupal 8 SEO, chapter 5, page 98?

Ben Finklea’s picture

Let’s take a step back and decide which module is best for most sites. In the past the SEO checklist has occasionally suggested that users pick a module (like for analytics). My recent experiences in WordPress have reinforced in my mind that the Drupal way of usually having one supported module is far superior than unlimited choice and incompatibility.

At the end of the day, the SEO checklist is a recommended set of modules and actions, not an overview of all possible choices.

Given Dave’s comment that a lot of the bugs have been resolved, let’s do an analysis of both and pick the best one. Does anyone have experience with recent releases of both modules or have time to test them?

Chris Matthews’s picture

Version: 8.x-4.0 » 8.x-4.x-dev
Status: Reviewed & tested by the community » Needs work

@Ben Finklea +1 to...

Given Dave’s comment that a lot of the bugs have been resolved, let’s do an analysis of both and pick the best one.

The Simple XML sitemap project page states:

This module aims to be a replacement for the xmlsitemap module for Drupal 8. Its functionality differs from xmlsitemap, see this post for details. Sitemaps generated by this module adhere to the new Google standard regarding multilingual content by creating hreflang sitemaps and image sitemaps. Googlebots will thank you later.

After I read through the referenced post, Drupal 8 SEO: Differences between simple_sitemap and xmlsitemap I'm not entirely sure it's accurate/relevant now as the post was written in Feb 2016. The end of the article states the following, but is it really accurate as of today?

As soon as xmlsitemap runs well in Drupal 8 however, you will have to decide: simple_sitemap for a more performant codebase with the newer sitemap standard and more powerful API, or xmlsitemap for its bigger feature set and a smarter sitemap generation process.

I agree that is extremely confusing for site builders to know which xml sitemap module to choose and the phrase "best one" is somewhat relative, but hopefully this will spur some additional conversation.

gbyte’s picture

I agree that is extremely confusing for site builders to know which xml sitemap module to choose

You make it sound like site builders are incapable of choosing one of two modules?

Both modules generate a sitemap.org conform sitemap for monolingual sites. For multilingual sites however, XML sitemap generates multiple sitemap.org conform sitemaps, whereas Simple XML sitemap generates a single multilingual hreflang sitemap conforming to Google's standard for multilingual sites. Both standards are perfectly valid and I don't think there is any SEO advantage yet.

With 3.x of Simple XML sitemap it is also possible to create sitemap variants of different sitemap types within the UI. This allows to have designated sitemaps of specific structure with specific content behind certain URLs. If you are only after sitemap contexts, you can provide those for the XML sitemap module as well by hooking into the code.

NB I'm the author of Simple XML sitemap so I'm not the right person to make a real comparison here.

Ben Finklea’s picture

With 3.x of Simple XML sitemap it is also possible to create sitemap variants of different sitemap types within the UI. This allows to have designated sitemaps of specific structure with specific content behind certain URLs.

Would you give me an example of when this would be used? It sounds interesting but I’m not sure I understand the use cases. Do you mean like a news site map, images site map, etc., or something else?

gbyte’s picture

Do you mean like a news site map, images site map, etc., or something else?

That's correct.

Out of the box Simple XML sitemap creates hreflang conform sitemaps and it is possible to create variants (contexts) by indexing specific content (-types) behind specific URLs. This is doable from within the UI.

On top of that this module attempts to be a framework for other stiemap types. If one wanted to create a Google news sitemap, they would have to implement custom plugins in a module. As soon as these are in place, one can create several Google news sitemaps (these would be sitemap variants of the new type) and make them index specific content.

Version 3.0 is very fresh and I suspect new sitemap types available as contrib modules to follow shortly.

bajah1701’s picture

@gbyte.co

Given that simple XML sitemap doesn't automatically submitted to Ask, Google, Bing (formerly Windows Live Search), and Yahoo! search engines, how do I ensure that the content the search engine receive is up to date?

gbyte’s picture

@bajah1701

You don't need to submit the sitemap every time you make changes to it. This would defeat the purpose of a sitemap. Bots crawl the sitemap a few times an hour. If you keep the sitemap in the default location /sitemap.xml, you shouldn't have to ever submit it to the search engines. Doing so when first setting up the sitemap does not hurt though and ensures a quick initial indexation.

thejimbirch’s picture

@gbyte.co

You are correct, you don't need to, but Google does support notifying them of changes.

See Notify us of changes:
https://developers.google.com/search/docs/guides/submit-URLs

This may trigger a faster re-crawl than not notifying them of changes:

See: Use the "ping" functionality to ask us to crawl your sitemap
https://support.google.com/webmasters/answer/183668?hl=en

gbyte’s picture

I know you can submit changes, just never had the issue of bots visiting a site infrequently; the usual is the opposite. I wouldn't mind the feature, please feel free to open up a request in the module's queue.

bajah1701’s picture

@gbyte.co

Thank you for taking the time to respond. Now I have a confident response when I'm asked that question, cause I know its coming.

thejimbirch’s picture

DamienMcKenna’s picture

Title: Replace XML Sitemap module with Simple Sitemap module » Add support for Simple Sitemap
Version: 8.x-4.x-dev » 5.0.x-dev
Category: Task » Feature request

Both XMLSitemap and Simple Sitemap are supported and have stable releases, so maybe both should be supported? Let's make this a feature request to support Simple Sitemap.

Ben Finklea’s picture

Philosophically, the SEO Checklist is the opinion of Volacci. It's not designed, necessarily, to be a list of all things SEO for Drupal but rather a recommendation for how we would optimize a site. I propose that we add a link in the description of the XML Sitemap to the Simple Sitemap as an alternative and let people make their own decision. Does that sound good to everyone?

TravisCarden’s picture

Status: Needs work » Fixed

Done. :)

Status: Fixed » Closed (fixed)

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