Opened 4 years ago

Last modified 4 years ago

#5241 new defect (bug)

Soft 404s with order params

Reported by: bradleyt's profile bradleyt Owned by:
Milestone: Priority: normal
Component: General Keywords: seo


On sites with no blogs, the order/ orderby params can cause soft 404's (404 template returned with 200 status code).

For example:

Other examples no doubt exist.

These should all return the correct HTTP status code.

Change History (1)

#1 @dd32
4 years ago

It looks like this is some 'buggy' WordPress Core behaviour.,718,722,728#L698

These requests are all to sites with a page set as the front page, and WordPress doesn't hard-404 for matching a matching archive (Even if it has no posts).
In these cases, WordPress is treating the page as a homepage archive (ie. posts on front) where it should be treating it as a 404 (page on front is not an archive).

I haven't gone digging for a core ticket for this yet

Note: See TracTickets for help on using tickets.