Why are my images and links not working after uploading to GitHub?

0
1
Asked By CuriousCat123 On

I recently uploaded my website using GitHub Desktop, but I'm facing some issues. Firstly, I have 8 images that aren't loading. The dev console shows they're not found, but they're present in the repository. I also wonder if case sensitivity matters—like if "Flying.jpg" and "flying.JPG" are treated as the same. Secondly, some links on my site aren't functioning properly; specifically, when I try to go back to certain pages, I get a 404 error for one of them, stating that "Index.html" can't be found. Any suggestions on how to solve these problems?

2 Answers

Answered By WebWizard42 On
Answered By TechieTom99 On

Yep, case sensitivity definitely matters! URLs are case-sensitive, so "Flying.jpg" and "flying.JPG" are considered different by GitHub’s servers, which use Linux. If you uploaded your website from a Windows machine, you might not have noticed this, since Windows doesn't care about letter casing. You’ll want to check the filenames in your GitHub repo and match them exactly in your code. As for the 404 error with "Index.html," ensure you're using the correct file name, which might need to be "index.html" instead. Just go into GitHub and rename them as needed.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.