I have provided an index.html file in my github pages site, however when I try to access it with a root url it throws a 404. When I add /index.html to the end it works perfectly. You can see this happening in the attached image.
The repository running the github site is at https://github.com/NicksWorld/Codes-js-demo .
Solved! Solved! Go to Solution.
Hmm, I can't reproduce this - navigating to your website without index.html works fine. Can you try again now? And if still doesn't work, what browser version are you using?
I had this exact error, my index.html was just a plaintext:
Then I changed it to a proper HTML doc:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Página de prueba<title> </head> <body> <h1>Hola amiguitos!</h1> <footer>gpuma 2017</footer> </body> </html>
I commited the new changes and it worked fine now.
Hmm, I'm a new developer, but I have the same issue, however, everything mentioned above in terms of <!DOCTYPE html> was already implemented.
I committed almost 21 hours ago and still nothing. With index.html at the end everything works. I see each product and can click into each product page. Without index.html products are missing and only one of the products (The 1st one) redirects to its product page.