Make WordPress Core

#58353 closed defect (bug) (duplicate)

Plain Permalinks do not 404 on paths

Reported by: timspratt's profile timspratt Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.2.1
Component: Permalinks Keywords:
Focuses: Cc:


When permalinks is set to use the URL path, such as "day and name", navigating to a path that shouldn't exist, like /foo, throws a 404 - which is expected.

When changing the permalinks to "plain" (?p=1), navigating to /foo shows the homepage. Should this not follow suit and throw a 404? Otherwise it will lead to pages with duplicate content, since no canonical is set to the homepage on the /foo page (which is showing the content of the homepage).

No plugins are installed on my test. It is a fresh install with the only change being the permalinks options set to "plain".


Change History (1)

#1 @SergeyBiryukov
11 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #56359.

Note: See TracTickets for help on using tickets.