Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 23 months ago

#60866 closed defect (bug) (worksforme)

Non existing 404 url open homepage when using static homepage feature

Reported by: ashvinblog Owned by:
Priority: normal Milestone:
Component: General Version: 6.4.3
Severity: normal Keywords:
Cc: Focuses:

Description

When using static homepage feature, non existing page urls open homepage instead of 404 page.

For example,
Your site is https://example.com
You set static homepage instead of default latest post.

Now, if someone visit url,
https://example.com/page/999999 or https://example.com/?s%2525252527993994-%
This will display homepage with status 200, instead of 404 page.

Change History (4)

#1 follow-up: @pratiklondhe
2 years ago

  • Resolutionworksforme
  • Status newclosed

hi, can you help with which theme you are using? If your theme does not have a template for 404.php it will by default redirect to the index.php template

#2 @ashvinblog
2 years ago

currently using https://wordpress.org/themes/astra/ theme
but also tested issue in wordpress default theme

#3 in reply to: ↑ 1 @ashvinblog
2 years ago

Replying to pratiklondhe:

hi, can you help with which theme you are using? If your theme does not have a template for 404.php it will by default redirect to the index.php template

currently using https://wordpress.org/themes/astra/ theme
but also tested issue in wordpress default theme

#4 @desrosj
23 months ago

  • Component Rewrite RulesGeneral
  • Milestone Awaiting Review

Hi @ashvinblog,

Welcome to Trac!

Sorry that this one fell through the cracks. I've tested with a default WordPress install and I am shown a 404 page when following your steps. If you're still experiencing the issue, please reach out to Astra's support or post in the WordPress.org Support Forums.

Note: See TracTickets for help on using tickets.