PBOOTCMS网站访问页面提示:您访问的页面不存在,请核对后重试!如何改成自动404跳转页面

分类:Pbootcms教程 时间:2024-05-22 11:29 浏览:0 评论:1
0

用户要求,访问pbootcms网站,很多死链提示您访问的页面不存在,请核对后重试!

要将这个改成1秒后自动跳转.

下面说下方法:

依次打开根目录/core/template/error.HTML

将error.html修改下即可。例如,一秒后跳转百度

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <tITle>错误信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
 <meta name="APPle-mobile-web-app-capable" content="yes" />
</head>
<body>


<div style="margin-left:10%;margin-top:5%;">
    <div style="margin-bottom:20px;"><img src="{coredir}/template/face02.png" height="120"></div>
    <div style="font-size:20px;margin-bottom:20px;">{info} <span id="time" style="font-size:18px;"></span></div>
    <div style="margin-bottom: 1rem;">
 
<p>页面将在1秒后自动跳转到另一个页面...</p>

<script>
setTimeout(function() {
    window.location.href = 'http://www.bAIdu.com/'; // 替换为你想要跳转的URL
}, 100); // 1000毫秒后执行
</script>

  
    </div>
    <div><span style="font-size:12px;border-top:1px solid #ccc;color:#ccc;padding-top:2px;">
     程序版本:{appversion}
    </span></div>
</div>

{js}

</body>
</html>


1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. Pbootcms教程 > PBOOTCMS网站访问页面提示:您访问的页面不存在,请核对后重试!如何改成自动404跳转页面

用户评论