WordPress.org

Making WordPress.org

Opened 2 days ago

Last modified 2 days ago

#4819 reopened defect

Forum 'view' links return a 200 status on a 404 template

Reported by: jonoaldersonwp Owned by:
Milestone: Priority: lowest
Component: Support Forums Keywords: seo analytics
Cc:

Description

The following URLs are linked to from within the wp.org ecosystem, and return a 404 template with a 200 HTTP status:

These should return a 404 HTTP status.

Change History (4)

#1 @Otto42
2 days ago

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

The popular one is a not found, but the rest are legitimate and return content.

#2 @jonoaldersonwp
2 days ago

Not for me. Do you have special privs? Have you tested in incognito?

Last edited 2 days ago by jonoaldersonwp (previous) (diff)

#3 @Otto42
2 days ago

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Okay, yeah, these are legitimate pages for moderators basically. It's empty if you can't see hidden things like spam and archived posts and so forth.

404's make sense for 4 of those, but /taggedmodlook will have valid posts on it from time to time, between the time a post is flagged and the time a moderator looks at it. Also it has the permanent modlook post on it, so I'm not sure why it doesn't show up if you're not logged in.

#4 @jonoaldersonwp
2 days ago

Gotcha.
Well, if we're showing a 404 template we should return a 404 header, and, vice-versa - regardless of whether the page sometimes has content.

The elegant solution for those periodically populated pages would be to give them a proper template + placeholder content, and noindex them.

Note: See TracTickets for help on using tickets.