@Khawarmehfooz
Posted
Hello!
I understand the issue you encountered with GitHub Pages opening the readme.md
file instead of the index.html
file in the public folder. To avoid this, you can try the following steps:
-
Ensure that your repository's default branch is set to the correct branch containing your
index.html
file. You can check and update this setting in your repository's settings. -
Verify that the
index.html
file is named correctly, as GitHub Pages looks for an"index.html"
file by default to serve as the main page. -
Double-check the file structure and make sure the
index.html
file is placed in the correct location within the repository. It should be in the root folder or in a folder named "docs" or"public"
for GitHub Pages to recognize it as the main file.
By following these steps, you can help GitHub Pages properly display your index.html
file as the main page. If you continue to encounter issues or have any further questions, feel free to ask.
Marked as helpful
@Kuzitaa
Posted
@Khawarmehfooz I'll write it down for the next one. It is a problem that breaks my head a lot 🤕
Thanks for taking the time!
@Khawarmehfooz
Posted
@Kuzitaa if you're having issues with github pages, try Vercel or Netlify. The deployment is much easy on these services.