WordPress.org

Making WordPress.org

Opened 8 months ago

Closed 5 months ago

#5022 closed defect (fixed)

XML sitemap URLs should not append a trailing slash

Reported by: jonoaldersonwp Owned by: dd32
Milestone: Priority: high
Component: Theme Directory Keywords: seo pending-systems
Cc:

Description

Requests to XML sitemap URLs, such as https://wordpress.org/themes/sitemap.xml, https://wordpress.org/themes/sitemap-index-1.xml, https://wordpress.org/plugins/sitemap-index-1.xml currently redirect and append a trailing slash.

This should not occur; the redirect should be removed/prevented.

Change History (10)

This ticket was mentioned in Slack in #meta by bradleyt. View the logs.


8 months ago

#2 follow-up: @Otto42
8 months ago

  • Resolution set to invalid
  • Status changed from new to closed

AFAIK, we don't have any sitemaps on w.org.

There is a feature in Jetpack that can generate sitemaps, but that should be turned off on all the sites by default? It might have been on for some reason earlier, but appears to be off now.

Closing this since there isn't a sitemap, but if we decide to make one happen, then things like this should be considered in a more overarching ticket.

#3 in reply to: ↑ 2 @dd32
8 months ago

Replying to Otto42:

There is a feature in Jetpack that can generate sitemaps, but that should be turned off on all the sites by default? It might have been on for some reason earlier, but appears to be off now.

Jetpack Sitemaps were indeed enabled deliberately on a number of sites quite some time ago.

#4 @jonoaldersonwp
8 months ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

But they're disabled now, seemingly?
Can we (re)enable, and configure/fix them?

#5 @bradleyt
8 months ago

It should be noted that the (currently disabled) sitemap URLs are also being referenced in https://wordpress.org/robots.txt. Either the sitemaps need to be re-enabled, or the robots.txt should remove these references.

#6 @dd32
8 months ago

  • Component changed from General to Theme Directory

Looks like this only applies to the Theme Directory, not plugins?

#8 @jonoaldersonwp
6 months ago

  • Priority changed from low to high

Nudging this up, as it's increasingly important given the state of the themes directory.

#9 @dd32
5 months ago

In 9818:

Theme Directory: Don't trailing slash .xml files (Sitemaps).

See #5022.

#10 @dd32
5 months ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from reopened to closed

In 9819:

Theme Directory: Skip outdated themes in the Jetpack Sitemaps.

Fixes #5022.

Note: See TracTickets for help on using tickets.