wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Archives 404

Open wilmerschipper opened this issue 10 years ago • 3 comments

It seems like Yoast SEO does not display the 404 page titles for archives right.

For example. If you go to https://yoast.com/4758 it doesn't display the 404 title and breadcrumbs, but the archive title. This happens with every random 4 digit number in the URL. Probably because those are related to archives. The response code however is 404.

This is relevant to us because we always use 'Page not found (404)' in our 404 titles to find issues with our websites in Google Analytics.

wilmerschipper avatar Feb 29 '16 13:02 wilmerschipper

Can reproduce.

Is indeed specific to a 4 (no more no less) digit requests in URL.

Rarst avatar Mar 10 '16 13:03 Rarst

So this was sort–of by design, 4 digits being recognized as year query and code trying to handle it as special case. After internal discussion this was decided to be dropped, I opened PR accordingly and it will behave as any other 404.

Rarst avatar Mar 16 '16 13:03 Rarst

Thank you for your reply! Very helpful.

wilmerschipper avatar Mar 16 '16 13:03 wilmerschipper