Skip to content
Discussion options

You must be logged in to vote

The issue might be the index.html is NOT in the root that GitHub Pages is serving.

What I see in your repo

Your files are inside this folder:

/website
   ├── index.html
   ├── about.html
   ├── services.html
   └── store.html

But GitHub Pages is trying to load from:

https://ldarling-hub.github.io/business_test_web/

GitHub Pages expects:

/index.html   ← in root

not

/website/index.html

So the root does not contain index.html, which triggers the 404 error.


Solution 1 — Move files to root (recommended)

Move everything out of website/.

Your repo should look like:

business_test_web
 ├── index.html
 ├── about.html
 ├── services.html
 └── store.html

Then GitHub Pages will immediately work.


S…

Replies: 1 comment 5 replies

This comment was marked as off-topic.

@ldarling-hub
Comment options

@BhuvanAde

This comment was marked as off-topic.

@BhuvanAde

This comment was marked as off-topic.

@ldarling-hub
Comment options

@BhuvanAde

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community!
2 participants