In the project root directory, add the .htaccess file.
The content of the file is
<code><span><span>RewriteEngine</span></span><span>On</span><span><span>Options</span></span> FollowSymLinks <span><span>RewriteCond</span></span><span>%{REQUEST_FILENAME}</span> !-f <span><span>RewriteCond</span></span><span>%{REQUEST_FILENAME}</span> !-d <span><span>RewriteRule</span></span> . index.html</code>
This is using apache as the server as an example.
If nginx is used as the server,
http://www.cnblogs.com/softidea/archive/2016/07/07/5651421.html
The above introduces the angularjs refresh 404, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.