Getting URL to View on Github Pages #58879
Replies: 2 comments
-
I don't know if you used git hub pages, but it is used to get a web page from your repository Here are some steps you can follow to address the issue:
I don't know how you use github pages, but I use it this way and it rarely gives me a problem: If the main HTML file is not named "index.html", it can cause problems when viewing GitHub pages. GitHub Pages expects the main file to be named "index.html" by default. When you access the GitHub Pages URL (for example, https://yourusername.github.io/), the server looks for a file named "index.html" in the specified deployment folder. If the main file has another name, the server will not be able to find it automatically and the pages will not be displayed correctly. So, to ensure that your GitHub pages work correctly, make sure your main HTML file is named "index.html". If the file name is different, you can either rename it to "index.html" or configure GitHub Pages to explicitly point to the correct file name in your repository settings. i hope it helps! |
Beta Was this translation helpful? Give feedback.
-
Any Idea how I configure GitHub Pages to explicitly point to the correct file name in your repository settings? |
Beta Was this translation helpful? Give feedback.
-
Hi
I always almost everytime have a problem to get the URL to View on Github Pages for my project. Could somebody help me out? I'm missing something or did something wrong.
This is the project:
https://github.com/Benjamin-bm/Capstone.project/tree/main/Capstone.project
I have tried using this guide:https://tomcam.github.io/least-github-pages/github-pages-url.html
And come up with: https://benjamin-bm.github.io/Capstone.project/Capstone.project/
Best,
Benjamin
Beta Was this translation helpful? Give feedback.
All reactions