Make WordPress Core

Opened 13 months ago

#56883 new defect (bug)

Feeds of non-existent tags and categories displays an empty feed instead of 404

Reported by: rafaucau's profile rafaucau Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.0.3
Component: Feeds Keywords:
Focuses: template, performance Cc:


I noticed in Google Search Console that Google often visits feeds of tags that no longer exist. It turns out that the RSS feeds still work instead of returning a 404.

Recreating the issue is simple:
Go to the page of the non-existent tag, e.g. /tag/asdsdsad/ and append feed/ to the end of the address, eg. /tag/asdsdsad/feed/. An empty feed will be displayed instead of a 404.

This should return a 404 so that search engine bots can forget about it instead of fetching it every so often.
I have thousands of such deleted tags on my site. It would be better for the environment if the bots didn't waste resources on this.

Attachments (2)

tag.png (36.1 KB) - added by rafaucau 13 months ago.
Non-existent tag
feed.png (44.0 KB) - added by rafaucau 13 months ago.
Feed of this tag.

Download all attachments as: .zip

Change History (2)

13 months ago

Non-existent tag

13 months ago

Feed of this tag.

Note: See TracTickets for help on using tickets.