<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=http://rkritesh.in/embed.js/">
<script type="text/javascript">
window.location.href = "http://rkritesh.in/embed.js/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
If you are not redirected automatically, follow the <a href='http://rkritesh.in/embed.js/'>link to example</a>
</body>
</html>
2条答案
按热度按时间bttbmeg01#
重命名仓库时似乎是GitHub doesn't redirect the pages:
GitHub Pages网站在重命名其存储库时不会自动重定向。
我认为你仍然可以通过向你的ritz078.github.io项目添加一个页面来进行重定向。使用以下命令创建
embed-js.html
:bpzcxfmw2#
重新创建
embed-js
存储库在
gh-pages branch
中添加一个index.html
文件,其中包含:但这只会重定向来自
http://rkritesh.in/embed-js/
的流量,其他页面如http://rkritesh.in/embed-js/anypage/
将获得404错误。参考:https://stackoverflow.com/a/5411601/1548376