[wp-trac] [WordPress Trac] #56359: Non-existent URLs show contents of homepage instead of 404 error
WordPress Trac
noreply at wordpress.org
Wed Aug 10 05:05:44 UTC 2022
#56359: Non-existent URLs show contents of homepage instead of 404 error
--------------------------+-----------------------------
Reporter: softrain | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 6.0
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In a fresh install of WordPress, I noticed that non-existent URLs would
show the contents of the homepage instead of returning 404 Not Found. For
example, when WordPress is configured to use the “Plain” permalink
structure (which is the default), going to `http://example.com/does-not-
exist/` would display the homepage instead of returning 404. The only time
a 404 might be shown is when trying to access a post by its ID. For
example, `http://example.com/?p=9999`. Is there something wrong with the
“Plain” permalink setting that causes it to display the contents of the
homepage instead of returning 404?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56359>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list