1

I created a plain static website and deployed it on username.github.io However, whenever I try to access the website, I have to use the direct path to my HTML index.html file to see the site.

Is it possible to set username.github.io to display the index file? Go directly to username.github.io vs username.github.io/index?

thanks in advance

3
  • No it does not work. Commented Dec 4, 2017 at 6:04
  • Instead of simply saying "it doesn't work", please provide a minimal reproducible example and a link to an example repo. Commented Dec 5, 2017 at 20:17
  • So, I got it to work, thank you for looking into helping. I think there was a clash between my DNS provider. I have resolved it since by fixing the DNS configurations. Commented Dec 7, 2017 at 16:17

2 Answers 2

3
  1. Create a new repo, name it <username>.github.io.
  2. Add an index.html file.

Documentation available here.

Sign up to request clarification or add additional context in comments.

Comments

-1

The official documentation is quite clear

cd username.github.io echo "My Page" > index.html git add index.html git commit -a -m "First pages commit" git push origin master 

Note that since Dec. 2016, a README would be enough if you do't have an index.html file.

3 Comments

Well, it quite clearly does not work in my scenario.
I followed the documentation.
@a_g what is your repository?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.