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
Jochem
Jochem2y ago
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
sebin
sebinOP2y ago
so what sshould I do? rename my first .html file to index?
Jochem
Jochem2y ago
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
sebin
sebinOP2y ago
Okay thankss @jochemm
Want results from more Discord servers?
Add your server