404 error on a href link? #21645
-
I don’t know what’s happening, but when I run my site locally everything looks ok, however when I push to github pages I keep getting a 404. I am using relative paths and am confused because I’m doing the same thing for multiple pages. I.e. I have a /booknotes folder that works fine. It’s like the relative link doesn’t work just for that folder. But It’s all fine locally. Here is where my code is hosted: GitHub - vishnukmurthy/vishnukmurthy.github.io |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments
-
it’s working now, have you checked it? I just checked it now, when you update or build something, it will take time, maybe 5-10 minutes |
Beta Was this translation helpful? Give feedback.
-
hmm, no it’s still broken. Maybe I should be more clear about my issue. The code is structured similarly. I.e. blog is a folder and book notes is a folder, and the posts are within that folder. References to both are done as absolute paths. |
Beta Was this translation helpful? Give feedback.
-
the crime and punishment in |
Beta Was this translation helpful? Give feedback.
-
First off, thanks for the help! I really appreciate it. This fixed my issue! I do have a few follow up questions that I hope you wouldn’t mind taking the time to answer though.
Thanks again for all your help. |
Beta Was this translation helpful? Give feedback.
-
this is tricky, you are using some kind of template https://vishnukmurthy.com/blog/ that’s the page when it’s just https://vishnukmurthy.com/blog.html this is your site and the last one to take note of https://vishnukmurthy.com/blog.html/ when you put |
Beta Was this translation helpful? Give feedback.
-
Ah. I think I know what the problem is. Github Pages - where my website is being hosted runs Jekyll on the backend behind the scenes. It looks like /blog/ has special meaning in Jekyll and things get funky if I name a folder that. |
Beta Was this translation helpful? Give feedback.
-
yup, but I’m not so sure of all the details of your page, I’m just observing it from the external |
Beta Was this translation helpful? Give feedback.
-
appreciate the help. Anyway that I can mark your answer as a solution, or give you official credit via github? This is my first time using this board. |
Beta Was this translation helpful? Give feedback.
-
yup, no problem with that, thanks, just mark it as a solution |
Beta Was this translation helpful? Give feedback.
-
any chance you could tell me how to do that? I don’t see any intuitive way, all I see is like and flag as options 😕 |
Beta Was this translation helpful? Give feedback.
-
if you place your cursor to the |
Beta Was this translation helpful? Give feedback.
-
Hi @vishnukmurthy! It looks like you couldn’t mark this as solved because it wasn’t inside a category. I’ve moved this thread to the GitHub Pages category now and marked @jdevstatic’s response as the solution for you ✨ |
Beta Was this translation helpful? Give feedback.
-
thanks @thomasshaped and @vishnukmurthy |
Beta Was this translation helpful? Give feedback.
the crime and punishment in
booknotes
folder is working, meaning, yourblog.html
at themain
folder is causing the issue, clashing withblog
folder. You can simply put ans
so that it will be a different word.