Non-existent URLs display homepage instead of 404 error
-
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
https://example.com/bla-bla-black-sheep/
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,https://example.com/?p=9999
. Is this the expected WordPress behavior when using the “Plain” permalink setting?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Non-existent URLs display homepage instead of 404 error’ is closed to new replies.