最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Why isn't my page loading up on Github? - Stack Overflow

programmeradmin4浏览0评论

I am trying to point my repo to a custom domain and receiving this error:

404 File not found

The site configured at this address does not contain the requested file. If this is your site, make sure that the filename case matches the URL. For root URLs (like /) you must provide an index.html file.

Here is my repo: .github.io

Here is the custom url: rohithpalagiri

I looked at my namecheap setting and it was set up correctly. Does anyone know if it's something in my code that's causing the issue?

I am trying to point my repo to a custom domain and receiving this error:

404 File not found

The site configured at this address does not contain the requested file. If this is your site, make sure that the filename case matches the URL. For root URLs (like http://example.com/) you must provide an index.html file.

Here is my repo: https://github.com/rohithpalagiri/rohithpalagiri.github.io

Here is the custom url: rohithpalagiri.com

I looked at my namecheap setting and it was set up correctly. Does anyone know if it's something in my code that's causing the issue?

Share Improve this question edited Oct 3, 2016 at 20:53 gunr2171 17.5k26 gold badges66 silver badges100 bronze badges asked Oct 3, 2016 at 17:52 user6917056user6917056 1011 gold badge1 silver badge5 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 8

It currently takes the master branch.

Go in the repo settings and choose the gh-pages branch. Then click Save.

Hi you don't actually need a gh-pages branch for this repo, since you are using username.github.io, your master branch will do just fine. Think of github as the directory you are serving from, and it cannot find your index.html - it doesn't know to search inside of your build/ or src/ directories for it. So you could just have your index.html open in the repo and link from there, or pull your build out and make that your repo. Your master branch will work just fine, and keep the cname

I have found the same issue. Please check whether your repository contains an index.html file or not. If not, go to that folder and type git add index.html.

after that git commit -m "your commit name", and then git push and then check on your repository you will find

Change the name of your index html for instance I had named mine portfolio.html then I renamed it to index.html and it solved the issue. Go to file save as and then change the name.

发布评论

评论列表(0)

  1. 暂无评论