url rewriting – Show index.php template instead of 404 page template


I have some posts that were permanently deleted, however, instead of wordpress returning the 404.php page template, it is returning the index.php template. In other posts, the behavior is right, but in some like this it is not

What I’ve done so far:

  • theme change to twenty-two
  • I updated the permalink structure
  • I cleaned the database with the advanced database cleaner plugin.
  • There is no cache

However, nothing resolved. You can see below the template shown and the correct status which is 404.

enter image description here

Renan Bessa 9 months 2022-04-25T16:01:24-05:00 0 Answers 0 views 0

Leave an answer