利用 GitHub Pages 进行中继域名跳转
1. 创建 github 账号
2. 创建一个 [用户名.github.io] 的仓库,如下
3. 在仓库里创建静态页面文件“index.html”,内容如下
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Lew's Blog</title>
<style media="screen">
* {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
</body>
<script type="text/javascript">
//将这个地址修改成需要的博客地址
window.location.href = "https://www.notion.so/lew/1a28044e119f44df8853470d1278637c?v=7b577715e8b74bc69bc0c2b2470d9314";
</script>
</html>
4. 域名解析指向github page页面
记录类型配置为 CNAME,我的域名服务商是西部数码,其他服务商的界面应该大同小异,对应值就是建立的仓库名[用户名.github.io]
5. 配置github接受域名解析
在仓库中创建名称为CNAME的域名解析文件,内容为刚解析的域名,注意服务商里是什么就是什么,如果没有http之类这里也不要加
6. 配置完成后等待一段时间就可以全部打通,用你自己的域名跳转任意你想跳转的网址了。
912sy.com download resources are from the network, only for learning and reference use, the copyright belongs to the original author, do not use for commercial purposes, please remove yourself within 24 hours after downloading.
If the content published on this site inadvertently violates your rights and interests, please contact us and the site will be deleted within one business day.If you encounter any problems please contact customer service QQ:2385367137
912sy " 利用 GitHub Pages 进行中继域名跳转
If the content published on this site inadvertently violates your rights and interests, please contact us and the site will be deleted within one business day.If you encounter any problems please contact customer service QQ:2385367137
912sy " 利用 GitHub Pages 进行中继域名跳转