---
title: "关于web.xml中配置404错误跳转页面 在ie不能显示自定义错误页面的问题"
author: "llying"
date: "2010-09-01T14:14:17Z"
tags: []
categories: ["企业架构"]
slug: "web-xml-404-ie"
draft: false
lastmod: "2010-09-01T14:14:17Z"
id: 752637
url: "https://llying.iteye.com/blog/752637"
---

关于web.xml中配置404错误跳转页面 在ie不能显示自定义错误页面的问题
 <error-page>
  <error-code>404</error-code>
  <location>/error_pages/404.html</location>
 </error-page>

本来自己定义了一个错误页面，不过在ie 6中怎么也显示不出来，firefox一点问题都没有，几经查询才知道原来是ie自作聪明给换掉了，
对错误页面的处理在ie来看页面大小<1024b 会被认为十分不友好，所以ie就将改页面给替换成自己的错误提示页面了，解决办法就是充实一下页面,让大小超过1024即可