配置web.xml

<error-page>
    <error-code>404</error-code>
    <location>/index.html</location>
</error-page>

 

 

httpd.conf

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.html$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.html [L]
</IfModule>

 

posted on 2017-09-07 22:14  1161588342  阅读(2647)  评论(0编辑  收藏  举报