简体   繁体   English

从 github.io 中删除自定义 url

[英]Removing Custom url from github.io

I have created a github page: isha97.github.io.我创建了一个 github 页面:isha97.github.io。 I added a custom url to it and removed it later.我向它添加了一个自定义 url,稍后将其删除。 Now when I try to open isha97.github.io, it redirects to the custom url.现在,当我尝试打开 isha97.github.io 时,它会重定向到自定义 url。 I have checked my repo for any CNAME file.我已经检查了我的仓库是否有任何 CNAME 文件。 It doesn't have any CNAME file.它没有任何 CNAME 文件。 Should I delete my repo and make it again?我应该删除我的回购并重新制作吗?

You don't need to delete the repo. 您不需要删除该存储库。 just create a new branch using github web interface, type gh-pages and press enter: 只需使用github Web界面创建一个新分支,输入gh-pages并按Enter:

在此处输入图片说明

Now go to your repo's settings, and change github pages source to gh-pages.: 现在转到存储库的设置,并将github页面源更改为gh-pages。 在此处输入图片说明

This will automatically clears any cache or dns issues... 这将自动清除所有缓存或DNS问题...

Update @Isha, I just checked your website and its working fine: https://isha97.github.io/ 更新 @Isha,我刚刚检查了您的网站及其运行情况: https ://isha97.github.io/

Sometimes github page may take a while to get updated while performing cname changes. 有时在执行cname更改时,github页面可能需要一段时间才能更新。 See this page form more info on troubleshooting the domains: https://help.github.com/articles/troubleshooting-custom-domains/ 请参阅此页面表单,以获取有关对域进行故障排除的更多信息: https : //help.github.com/articles/troubleshooting-custom-domains/

GitHub uses a 301 redirect for custom domains. GitHub 对自定义域使用301重定向。 Your browser still has the redirect cached.您的浏览器仍然缓存了重定向。 Try opening a nonexistent URL on your GitHub Pages site and setting a cookie.尝试在您的 GitHub Pages 站点上打开一个不存在的 URL 并设置 cookie。 Then, clear the cache for your site in your browser settings.然后,在浏览器设置中清除站点缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM