本文来自实际建站过程中的记录,步骤可直接照做;环境不同导致的报错,见文末说明。
\n \n
\n 应用户要求,访问Pbootcms网站,很多死链提示您访问的页面不存在,请核对后重试!要将这个改成1秒后自动跳转.下面说下方法:依次打开根目录/core/template/error.html将error.html修改下即可。例如,一秒后跳转百度。<!doctype html> 错误信息 {info} 页面将在1秒后自动跳转到另一个页面...setTi
\n 应用户要求,访问Pbootcms网站,很多死链提示您访问的页面不存在,请核对后重试!
要将这个改成1秒后自动跳转.
下面说下方法:
依次打开根目录/core/template/error.html
将error.html修改下即可。例如,一秒后跳转百度。
<!doctype html>\n<html>\n<head>\n <meta charset="utf-8">\n <title>错误信息</title>\n <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />\n <meta name="apple-mobile-web-app-capable" content="yes" />\n</head>\n<body>\n\n\n<div style="margin-left:10%;margin-top:5%;">\n <div style="margin-bottom:20px;"><img src="{coredir}/template/face02.png" height="120"></div>\n <div style="font-size:20px;margin-bottom:20px;">{info} <span id="time" style="font-size:18px;"></span></div>\n <div style="margin-bottom: 1rem;">\n \n<p>页面将在1秒后自动跳转到另一个页面...</p>\n\n<script>\nsetTimeout(function() {\n window.location.href = 'http://www.baidu.com/'; // 替换为你想要跳转的URL\n}, 100); // 1000毫秒后执行\n</script>\n\n \n </div>\n <div><span style="font-size:12px;border-top:1px solid #ccc;color:#ccc;padding-top:2px;">\n 程序版本:{appversion}\n </span></div>\n</div>\n\n{js}\n\n</body>\n</html>
客户选版中心