Filenames in Github
Can I ask why github dont allowed any different filename when pushing a file in github? Why do it needs to be index.html. My files last year are not even named index html but its not showing error 404.
4 Replies
Index is the file that's shown when you don't specify one in the url, by convention. If you want to show another file you'll have to put it in the url
https://yourcoolwebsite.github.io/helloworld.html should work just fine
so what sshould I do? rename my first .html file to index?
yeah
alternatively you can create a dummy index.html file that redirects using a meta tag, but I'd recommend using index.html as your entry point into your site
Okay thankss @jochemm