I encountered a situation. For example, I now have a frontend app. The entry file is index.php. Because it is the first app, I did not need to add index.php when writing a hyperlink tag. The default Will go to this index.php. But I don’t know what’s going on now. Now I have to add index.php to access it normally. If I don’t add it, a 404 error will appear.
Have you modified the web server configuration file recently?
If you must add index.php to access, it is very likely that the rewrite function of the web server is not enabled
Google your web server name (apache, nginx, iis ..) +
url rewrite
或者url重写
, check your configuration