Skip to content

backdrop-contrib/easy_xmlsitemap

Repository files navigation

Easy XML sitemap

Provides XML sitemap conforming to Google's recommendations and sitemaps.org protocol.

Google's recommendations

sitemaps.org protocol

New in version 1.0.12 - integration with "SEO Meta Tags" module - exclude from sitemap any page have "noindex" in meta-tag "robots".

Features

XML sitemap file is available at http(s)://your.domain/sitemap.xml and include URLs generated for:

  • pages created from nodes;
  • non-empty taxonomy terms pages;
  • public pages provided by "Views" module.

If some node is set as site's front page, direct URL to this node will be automatically excluded from sitemap to avoid content duplication.

You may exclude from sitemap:

  • specific URLs, for example 403/404 error pages;
  • content types that should not be directly accessible from its URL;
  • all content which presented on any of available languages.

Each time sitemap re-built, backup copy of previous file state is saved as public://easy_xmlsitemap/sitemap.xml.bak

Less important and optional URLs attributes "priority" and "lastmod" are omitted.

You can want add at end of your file robots.txt line:

Sitemap: http(s)://your.domain/sitemap.xml

Installation

If you have file "sitemap.xml" in website root directory, please remove or rename this file before you start module installation.

Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules

Configuration and usage

Administration page is available via Administration > Configuration > Search and metadata > Easy XML Sitemap (admin/config/metadata/easy_xmlsitemap) and may be useful for:

  • anytime (re)build XML sitemap by using button "BUILD SITEMAP NOW";
  • view information when last time sitemap was generated.

Under "Advanced settings" fieldset:

  • set forced "https" protocol for URLs in sitemap;
  • set (if you need) different default base URL used for sitemap links;
  • select sitemap rebuild frequency: manually, daily (default) or any cron run;
  • add exclusions for URLs you won't include in sitemap;
  • add exclusions for content types you won't include in sitemap;
  • add exclusions for content of languages you won't include in sitemap.

Note: if you have "SEO Meta Tags" module installed, you can also exclude all pages with "noindex" in the "robots" meta tag from the sitemap.

Screenshots are available at https://findlab.net/projects/easy-xmlsitemap

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

Current Maintainer

Vladimir (https://github.com/findlabnet/)

More information

For bug reports, feature or support requests, please use the module issue queue at https://github.com/backdrop-contrib/easy_xmlsitemap/issues.