Drupal 7 only. For your information, Drupal 7 core will still be supported until November 2022.
Any non-existent URL containing a valid parent path returns 200, not 404 [#432384]. While solved for Drupal 8, it is still an issue for Drupal 7. This module checks on node pages (aliased or not) if the current URL is a "known" router item using menu_get_item(). If not it returns a 404.
Some contributed modules might use node paths that are not in the menu_router table and therefore create false positives. Their path pattern can be excluded through the module settings by defining path arguments on which the 404s should be avoided.
If there is a redirect defined (https://www.drupal.org/project/redirect) for the current page a 404 will also be skipped.
Configuration
Define the node path arguments to exclude at:
../admin/config/search/force404
Project information
- Project categories: Administration tools, Search engine optimization (SEO)
15 sites report using this module
- Created by lolandese on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
