<error-page> <error-code>404</error-code> <location>/error404.html</location> </error-page> <error-page> <error-code>500</error-code> <location>/error500.html</location> </error-page>
- 如:当发生404错误(找不到页面)时,会跳到网站根目录下的error404.html
- 如:当发生500错误(服务器错误)时,会跳到网站根目录下的error500.html