The problem encountered is that after manually adding index.php after the domain name, and then adding any path, no 404 is reported. It is normal not to manually add index.php, and 404 can be reported normally. Like below.
www.test.com/888 (non-existent path or directory)——Normal jump 404
www.test.com/index.php/888 (non-existent path or directory) Directory)——The address does not jump, the current home page is displayed, and some styles are gone. . .
How to set it up so that the following one also displays 404, Pagoda ngnix environment.
Check url rewriting mechanism