Problem/Motivation

XML site map does not set to visible 301 redirects.
I want to move my site to a new domain. Google would like to get old/new URL's mapping, which I possibly can do via sitemap.xml which includes 301 redirects set using Drupal redirect https://www.drupal.org/project/redirect

Steps to reproduce

XML Sitemap entity settings select and include redirect -->ok
Afterwards redirects show under Sitemap settings as indexed, but are NOT set to visible. See the screenshot. Also are not showing in the sitemap https://www.primorskohotel.com/en/sitemap.xml
redirect not visible

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ivoo56 created an issue. See original summary.

ivoo56’s picture

Issue summary: View changes
ivoo56’s picture

Issue summary: View changes
Dave Reid’s picture

I don't believe that redirects are something that would be supported in the sitemap anyway, as they are not "visible" content as they don't really exist as content on their own to index.

Dave Reid’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
Status: Active » Needs review
FileSize
426 bytes

See http://www.thesempost.com/google-avoid-including-redirected-urls-sitemaps/ for more information on this.

Let's avoid this for others by specifically excluding the redirect module entity type from the list of selectable entity types.

Dave Reid’s picture

Title: 301 Redirects selected, but not showing in the sitemap » Exclude redirects from indexable entity types
Category: Support request » Task

  • Dave Reid committed d94c17d on 8.x-1.x
    Issue #3199259 by Dave Reid, ivoo56: Exclude redirects from indexable...
Dave Reid’s picture

Status: Needs review » Fixed

Committed #5 to 8.x-1.x.

  • Dave Reid committed d94c17d on 2.x
    Issue #3199259 by Dave Reid, ivoo56: Exclude redirects from indexable...

Status: Fixed » Closed (fixed)

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