WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 3 months ago

#20203 new enhancement

To return 404 page when user request not existing category and existing at once (in URL)

Reported by: egorpromo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.3.1
Component: Taxonomy Keywords:
Focuses: Cc:

Description

I have category 'category1' with posts in it. I want to get posts from 'caegory1' and not existing category 'not_existing'.
if I use URL like 'http://mysite.com/category/category1+notexisting' I get normal archive page but this is a page without post because there are no posts in 'category1' and 'not_exists' at once.
But maybe it is better to return 404 page? Because it produces additional duplicate pages for search engines like google.

Change History (3)

comment:1 egorpromo2 years ago

Not duplicate page but dummy page whitout meaning. This page must not be in index of search engines if it be found miraculously there

Version 0, edited 2 years ago by egorpromo (next)

comment:2 SergeyBiryukov23 months ago

Related/duplicate: #11348

comment:3 nacin3 months ago

  • Component changed from General to Taxonomy
Note: See TracTickets for help on using tickets.