New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于 Hexo 上传 404 页面的问题 #2411
Comments
找到问题了,是因为腾讯公益不支持 https,所以被拦截了,将代码修改为: <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8;"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="robots" content="all" />
<meta name="robots" content="index,follow"/>
</head>
<body>
<script type="text/plain" src="http://www.qq.com/404/search_children.js"
charset="utf-8" homePageUrl="/"
homePageName="回到我的主页">
</script>
<script src="https://qzone.qq.com/gy/404/data.js" charset="utf-8"></script>
<script src="https://qzone.qq.com/gy/404/page.js" charset="utf-8"></script>
</body>
</html> 即可,但是这样有个问题: ** CSS 样式加载不出来 **,正在寻找解决方法中 |
是因为现在 chrome 只支持加载经过 https 的 CSS 的原因吗? |
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8;"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="robots" content="all" />
<meta name="robots" content="index,follow"/>
<link rel="stylesheet" type="text/css" href="https://qzone.qq.com/gy/404/style/404style.css" >
</head>
<body>
<script type="text/plain" src="http://www.qq.com/404/search_children.js"
charset="utf-8" homePageUrl="/"
homePageName="回到我的主页">
</script>
<script src="https://qzone.qq.com/gy/404/data.js" charset="utf-8"></script>
<script src="https://qzone.qq.com/gy/404/page.js" charset="utf-8"></script>
</body>
</html> |
@iissnan 这么写不行, |
@YuleYu 感谢,解决了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
将 404 页面放入 Hexo 下的 Source 目录下,但是上传到 Git Pages 之后这个页面打不开了,已经确定文件名无误,路径地址也无误,并没有显示 404 页面而是跳转到留言板页面
The text was updated successfully, but these errors were encountered: