配置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>

 

相关文章:

  • 2022-01-11
  • 2021-10-25
  • 2022-01-21
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-02-17
  • 2021-10-03
猜你喜欢
  • 2022-12-23
  • 2021-05-09
  • 2022-01-20
  • 2021-12-26
  • 2022-12-23
  • 2021-09-05
  • 2021-11-01
相关资源
相似解决方案