欢迎光临
我们一直在努力

解决自定义404页面在IE浏览器中无法显示问题

建站超值云服务器,限时71元/月

网站设置自定义404页面之后,无法在浏览器中正常显示,该如何解决呢?造成此问题可能是以下原因:

1、404页面文件权限设置错误

我们需要为404页面文件添加上用户everyone的可读权限,右击404页面文件——属性——安全,找到用户everyone(如没有自行添加),修改其权限“读取和运行”和“读取”均赋予允许权限;

2、404页面文件小于512字节

在权限设置正确的情况下,自定义的404页面文件大小如果小于512字节,那么IE内核的浏览器会认为你自定义的404页面不够权威,从而使用其自带的404页面代替;

但在非IE内核的浏览器,如火狐浏览器、Opera浏览器等均能正常显示,所以解决方法是为404页面添加多一些内容,使其大小大于512字节即可;

3、本地IIS也会有影响

404页面文件权限设置正确且大小大于512字节,但在IE内核的浏览器仍然无法显示。通过多次的搜索查找资料,终于得到一点点启示。而后把本地的IIS关闭,测试后不显示。而后直接把本地IIS卸载,测试后成功显示自定义的404页面,其中是什么原因我不明白。

4、title与meta标签的位置影响

在某些环境下如apache,如果meta标签在title标签前面,那么自定义的404页面不会显示。解决方法是将title标签置于meta标签前面,如:

没有找到您要访问的页面</p> <p><strong>5、浏览器缓存也会有影响</strong></p> <p>如果以上情况都没错,无数次的刷新仍然无法显示自定义的404页面的话,那么建议用户们清除一下浏览器缓存,看是否可以解决问题。</p> </article> <div style="padding-bottom:10px"><a href="https://love.4c.cn/" target="_blank"><img src="http://www.west999.com/www/wp-content/uploads/2019/10/-20" alt=""/></a></div> <div class="post-actions"> <a href="javascript:;" etap="like" class="post-like action action-like" data-pid="111833"><i class="fa fa-thumbs-o-up"></i>赞(<span>0</span>)</a> </div> <div class="post-copyright">版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:<a href="http://www.west999.com/www">IDC资讯中心</a> » <a href="http://www.west999.com/www/info/111833-1.htm">解决自定义404页面在IE浏览器中无法显示问题</a></div> <div class="action-share"><div class="bdsharebuttonbox"> <span>分享到:</span> <a class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a> <a class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a> <a class="bds_weixin" data-cmd="weixin" title="分享到微信"></a> <a class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a> <a class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a> <a class="bds_bdhome" data-cmd="bdhome" title="分享到百度新首页"></a> <a class="bds_tqf" data-cmd="tqf" title="分享到腾讯朋友"></a> <a class="bds_youdao" data-cmd="youdao" title="分享到有道云笔记"></a> <a class="bds_more" data-cmd="more">更多</a> <span>(</span><a class="bds_count" data-cmd="count" title="累计分享0次">0</a><span>)</span> </div> <script> window._bd_share_config = { common: { "bdText" : "", "bdMini" : "2", "bdMiniList" : false, "bdPic" : "", "bdStyle" : "0", "bdSize" : "24" }, share: [{ bdCustomStyle: "http://www.west999.com/www/wp-content/themes/duz5.2.1/css/share.css" }] } with(document)0[(getElementsByTagName("head")[0]||body).appendChild(createElement("script")).src="http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion="+~(-new Date()/36e5)]; </script></div> <div class="article-tags"></div> <nav class="article-nav"> <span class="article-nav-prev">上一篇<br><a href="http://www.west999.com/www/info/111832-1.htm" rel="prev">安卓版Chrome浏览器都有哪些使用技巧</a></span> <span class="article-nav-next">下一篇<br><a href="http://www.west999.com/www/info/111835-1.htm" rel="next">UC浏览器安装失败解决方法</a></span> </nav> <div class="relates"><div class="title"><h3>相关推荐</h3></div><ul><li>暂无文章</li></ul></div> <div class="title" id="comments"> <h3>评论 <small>抢沙发</small></h3> </div> <div id="respond" class="no_webshot"> <form action="http://www.west999.com/www/wp-comments-post.php" method="post" id="commentform"> <div class="comt"> <div class="comt-title"> <img data-src="https://secure.gravatar.com/avatar/?s=100&d=mm" class="avatar avatar-100" height="50" width="50"> <p><a id="cancel-comment-reply-link" href="javascript:;">取消</a></p> </div> <div class="comt-box"> <textarea placeholder="你的评论可以一针见血" class="input-block-level comt-area" name="comment" id="comment" cols="100%" rows="3" tabindex="1" onkeydown="if(event.ctrlKey&&event.keyCode==13){document.getElementById('submit').click();return false};"></textarea> <div class="comt-ctrl"> <div class="comt-tips"><input type='hidden' name='comment_post_ID' value='111833' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> <label for="comment_mail_notify" class="checkbox inline hide" style="padding-top:0"><input type="checkbox" name="comment_mail_notify" id="comment_mail_notify" value="comment_mail_notify" checked="checked"/>有人回复时邮件通知我</label></div> <button type="submit" name="submit" id="submit" tabindex="5">提交评论</button> <!-- <span data-type="comment-insert-smilie" class="muted comt-smilie"><i class="icon-thumbs-up icon12"></i> 表情</span> --> </div> </div> <div class="comt-comterinfo" id="comment-author-info" > <ul> <li class="form-inline"><label class="hide" for="author">昵称</label><input class="ipt" type="text" name="author" id="author" value="" tabindex="2" placeholder="昵称"><span class="text-muted">昵称 (必填)</span></li> <li class="form-inline"><label class="hide" for="email">邮箱</label><input class="ipt" type="text" name="email" id="email" value="" tabindex="3" placeholder="邮箱"><span class="text-muted">邮箱 (必填)</span></li> <li class="form-inline"><label class="hide" for="url">网址</label><input class="ipt" type="text" name="url" id="url" value="" tabindex="4" placeholder="网址"><span class="text-muted">网址</span></li> </ul> </div> </div> </form> </div> </div> </div> <div class="sidebar"> <div class="widget widget_ui_asb"><div class="item"><a href="https://www.west.cn/cloudhost/?ReferenceID=zzxxw999" target="_blank" title="云服务器仅需0.69元/天起!快速备案,无需幕布!"><img src="http://www.west999.com/www/wp-content/uploads/2019/10/-12"></a></div></div><div class="widget widget_ui_tags"><h3>热门标签</h3><div class="items"><a href="http://www.west999.com/www/info/tag/ldquo">ldquo (1370)</a><a href="http://www.west999.com/www/info/tag/win">win (1324)</a><a href="http://www.west999.com/www/info/tag/%e6%b4%bb%e5%8a%a8">活动 (1166)</a><a href="http://www.west999.com/www/info/tag/ios">ios (1162)</a><a href="http://www.west999.com/www/info/tag/rdquo">rdquo (818)</a><a href="http://www.west999.com/www/info/tag/%e5%be%ae%e4%bf%a1">微信 (747)</a><a href="http://www.west999.com/www/info/tag/iphone">iphone (728)</a><a href="http://www.west999.com/www/info/tag/%e5%b0%8f%e7%b1%b3">小米 (722)</a><a href="http://www.west999.com/www/info/tag/windows">windows (706)</a><a href="http://www.west999.com/www/info/tag/%e6%89%8b%e6%9c%ba">手机 (698)</a><a href="http://www.west999.com/www/info/tag/%e9%85%b7%e8%b7%91">酷跑 (686)</a><a href="http://www.west999.com/www/info/tag/%e9%a3%9e%e8%bd%a6">飞车 (540)</a><a href="http://www.west999.com/www/info/tag/%e5%a4%a9%e5%a4%a9">天天 (492)</a><a href="http://www.west999.com/www/info/tag/qq">qq (491)</a><a href="http://www.west999.com/www/info/tag/%e7%bd%91%e7%ab%99">网站 (457)</a><a href="http://www.west999.com/www/info/tag/%e5%85%a8%e6%b0%91">全民 (442)</a><a href="http://www.west999.com/www/info/tag/discuz">discuz (408)</a><a href="http://www.west999.com/www/info/tag/%e5%85%85%e5%80%bc">充值 (389)</a><a href="http://www.west999.com/www/info/tag/%e5%ae%89%e8%a3%85">安装 (368)</a><a href="http://www.west999.com/www/info/tag/%e6%9b%b4%e6%96%b0">更新 (321)</a><a href="http://www.west999.com/www/info/tag/%e5%8d%8e%e4%b8%ba">华为 (300)</a><a href="http://www.west999.com/www/info/tag/%e6%b5%8f%e8%a7%88%e5%99%a8">浏览器 (292)</a><a href="http://www.west999.com/www/info/tag/%e6%94%af%e4%bb%98%e5%ae%9d">支付宝 (289)</a><a href="http://www.west999.com/www/info/tag/%e4%b8%89%e6%98%9f">三星 (266)</a><a href="http://www.west999.com/www/info/tag/note">note (264)</a><a href="http://www.west999.com/www/info/tag/%e6%95%99%e7%a8%8b">教程 (262)</a><a href="http://www.west999.com/www/info/tag/%e9%a2%84%e8%a7%88%e7%89%88">预览版 (261)</a><a href="http://www.west999.com/www/info/tag/%e5%b0%8f%e7%bc%96">小编 (258)</a><a href="http://www.west999.com/www/info/tag/%e8%b6%8a%e7%8b%b1">越狱 (254)</a><a href="http://www.west999.com/www/info/tag/linux">linux (248)</a></div></div><div class="widget widget_ui_posts"><h3>热门文章</h3><ul class="nopic"></ul></div><div class="widget widget_categories"><h3>分类目录</h3> <ul> <li class="cat-item-none">没有分类目录</li> </ul> </div></div></section> <footer class="footer"> <div class="container"> <p>© 2018-2025 <a href="http://www.west999.com/www">IDC资讯中心</a>   <p>为学习和知识分享目的,本站文章部分自网络,本站文章部分自网络,如有侵权,请联系:2653426586@qq.com QQ:2653426586</p> <p>如有其他需求,请联系:2653426586@qq.com QQ:2653426586</p> <p><span>友情链接:</span>  <a href="https://www.lnmpweb.cn/" target="_blank">网络安全</a>  <a href="https://www.ysidc.top/" target="_blank">运维经验</a>  <a href="https://blog.tag.gg/" target="_blank">服务器技术</a>  <a href="http://www.zhuwang360.com/" target="_blank">筑旺学堂</a>  <a href="https://blog.mydns.vip" target="_blank">IT技术分享</a>  <a href="https://www.gfwck.xyz" target="_blank">网络服务配置</a>  <a href="https://www.jdian.vip/" target="_blank">运维随笔录</a>  <a href="https://www.changshijun.com/" target="_blank">电脑常识</a>  <a href="http://www.aihuaju.com/" target="_blank">鲜花</a>  <a href="https://www.dongjiaospa.vip/" target="_blank">东郊到家</a>  <a href="https://www.wangyuespa.vip/" target="_blank">往约到家</a></p> </p> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?db46b5f21c293739bcbcfa2490e39804"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </div> </footer> <!-- 复制内容弹窗版权提醒 --> <script type="text/javascript"> document.body.oncopy=function(){alert("复制成功!撰文不易,转载请务必保留原文链接,谢谢合作!");} </script> <script type="text/javascript"> len = $(".widget_ui_tags .items a").length - 1; $(".widget_ui_tags .items a").each(function(i) { var let = new Array( '27ea80','3366FF','ff5473','df27ea', '31ac76', 'ea4563', '31a6a0', '8e7daa', '4fad7b', 'f99f13', 'f85200', '666666'); var random1 = Math.floor(Math.random() * 12) + 0; var num = Math.floor(Math.random() * 5 + 12); $(this).attr('style', 'background:#' + let[random1] + '; opacity: 0.6;'+''); if ($(this).next().length > 0) { last = $(this).next().position().left } }); </script> <link rel="stylesheet" href="http://www.west999.com/www/wp-content/themes/duz5.2.1/highslide/highslide.css" type="text/css" /> <script type="text/javascript" src="http://www.west999.com/www/wp-content/themes/duz5.2.1/highslide/highslide.js"></script> <script type="text/javascript"> jQuery(document).ready(function($) { hs.graphicsDir = "http://www.west999.com/www/wp-content/themes/duz5.2.1/highslide/graphics/"; hs.outlineType = "rounded-white"; hs.dimmingOpacity = 0.8; hs.outlineWhileAnimating = true; hs.showCredits = false; hs.captionEval = "this.thumb.alt"; hs.numberPosition = "caption"; hs.align = "center"; hs.transitions = ["expand", "crossfade"]; hs.addSlideshow({ interval: 5000, repeat: true, useControls: true, fixedControls: "fit", overlayOptions: { opacity: 0.75, position: "bottom center", hideOnMouseOut: true } }); }); </script> <!-- 评论框礼花绽放效果--> <script src="http://www.west999.com/www/wp-content/themes/duz5.2.1/diy/activate-power-mode.js "></script> <script> POWERMODE.colorful = true; // ture 为启用礼花特效 POWERMODE.shake = false; // false 为禁用震动特效 document.body.addEventListener('input', POWERMODE); </script> <!--FOOTER_CODE_START--> <!--百度推送代码--> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https'){ bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else{ bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <!--百度推送代码EDN--> <!--FOOTER_CODE_END--> <script type='text/javascript' src='http://www.west999.com/www/wp-content/themes/duz5.2.1/js/libs/bootstrap.min.js?ver=5.2'></script> <script type='text/javascript' src='http://www.west999.com/www/wp-content/themes/duz5.2.1/js/loader.js?ver=5.2'></script> <script type='text/javascript' src='http://www.west999.com/www/wp-includes/js/wp-embed.min.js?ver=4.9.22'></script> </body> </html>