404 Error when trying to publish w/ GitHub! #23733
-
I’m trying to host a page on GitHub pages, but I seem to be having some errors with it. From what I understand, everything is where it should be, but I keep getting a 404 error when I try and access the page. Link to the repo: https://github.com/Karan-Ghatt/My-Portfolio It should be active at: https://karan-ghatt.github.io/My-Portfolio/ I would really appreciate if you could have a look and see if you can tell what’s going on. Much love people! [EDIT] |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @Karan-Ghatt, I just tried the link that you provided and your site loads for me. Are you still having issues loading it yourself? |
Beta Was this translation helpful? Give feedback.
-
I managed to get it loading! I had saved my file as Index.html, where it should have been index.html. All sorted on that front now! But I cant seem to get all the images to load! It manages to find the about image but nothing else, even though their in the same directory in the repo?? |
Beta Was this translation helpful? Give feedback.
-
Do you have an example of an image link that is breaking? I don’t see any broken images. |
Beta Was this translation helpful? Give feedback.
-
Take a look at the difference in how you write the Karan-Ghatt/My-Portfolio/blob/e9c8c585f51ce71e04e775e7572d990782c8f11f/index.html#L160
This one doesn’t: github.comKaran-Ghatt/My-Portfolio/blob/e9c8c585f51ce71e04e775e7572d990782c8f11f/index.html#L239
The reason for this is that the second one, You can learn more about how URLs and hyperlinks work in web pages on the Mozilla Developer Network documentation. |
Beta Was this translation helpful? Give feedback.
Take a look at the difference in how you write the
github.comsrc
value. This one works:Karan-Ghatt/My-Portfolio/blob/e9c8c585f51ce71e04e775e7572d990782c8f11f/index.html#L160