I have the opposite problem to many: When I use the official method to remove index.php and then enter an invalid url/template group, e.g.
I do not get a 404 error, instead the most recently added page is shown.
Here's my setup:
- EE 2.9.2
- Strict URLs are enabled.
- The correct 404 template is set.
Because most have the inverse situation I could not find much to help me debug this issue. If I delete the code that removes index.php I get a 404 as expected.
Any pointers are greatly appreciated. Thank you.