您现在的位置是:首页 > 教程 > pbootcms教程pbootcms教程
pbootcms网站访问错误页面怎么实现404页面跳转
夏思徽2024-09-11 19:54:25pbootcms教程已有人查阅
导读应用户要求,访问pbootcms网站,很多死链提示您访问的页面不存在,请核对后重试!要将这个改成1秒后自动跳转。
应用户要求,访问pbootcms网站,很多死链提示您访问的页面不存在,请核对后重试!要将这个改成1秒后自动跳转。
下面说下方法:
依次打开根目录/core/template/error.HTML
将error.html修改下即可。例如,一秒后跳转百度。
下面说下方法:
依次打开根目录/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:// .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>
本文标签:
很赞哦! ()
相关文章
- pbootcms网站首页右侧或者列表页左侧调用tags标签的写法
- pbootcms网站阿里云虚拟主机验证码不显示的解决方法
- pbootcms网站转移后无法打开提示“No input file specifed”怎么办
- pbootcms网站修改CSS样式后自动更新缓存的代码实例
- pbootcms网站被黑了被挂马了生成无数的链接怎么办
- pbootcms网站版权自动显示年份的修改方法
- pbootcms网站标签pboot:list当前文档高亮代码写法
- pbootcms网站容易被攻击吗?pbootcms怎么样?
- pbootcms网站程序提示“执行SQL发生错误!错误:DISK I/O ERROR”
- pbootcms网站常见报错的原因及解决方法
- PbootCMS网站提示“会话目录写入权限不足”怎么办
- pbootcms网站后台百度普通收录推送发生错误:site error
随机图文
-
pbootcms判断封面图片为空的方法
网站的内容列表调用新闻时有时需要判断是否有封面图片,那么pbootcms判断图片为空怎么操作,一起来看下。 -
pbootcms调用标题和摘要字数限制的写法
长度截取使用len=* 或 lencn=* ,使用第二个将避免中英文长度不统一问题,一个英文字符算半个字 (V1.3.5+)内容截取时可使用more='*'设置省略号内容 -
pbootcms模板怎么安装与授权
1、系统自带完整后台以及模板,默认采用SqlITe数据库,不需要做导入和配置操作,放入PHP(5.3+)空间即可直接使用, -
pbootcms提示“您访问路径含有非法字符,防注入系统提醒您请勿尝试非法操作!”
pbootcms2.0版本后增加了防注入系统,当我们的链接带有些特殊字符会触发防注入然后报错“您访问路径含有非法字符
留言与评论 (共有 条评论) |