Opened 8 months ago
#56883 new defect (bug)
Feeds of non-existent tags and categories displays an empty feed instead of 404
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.0.3 |
Component: | Feeds | Keywords: | |
Focuses: | template, performance | Cc: |
Description
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)
Note: See
TracTickets for help on using
tickets.
Non-existent tag