Skip to content

How do I create a github pages directory for a custom domain? #22899

Answered by oycyc
pyl asked this question in General
Discussion options

You must be logged in to vote

Hi @python8u.

This is quite simple. You can achieve this in two ways.

1.) Simply create a folder inside of the repository that you use for you root domain. Example below.

 As you can see, inside my root domain repository, I have another folder named “contact” and if you go to https://yangciou.github.io/contact or https://yangciou.com/contact , it’ll use the code inside that “contact” folder.

2.) Another approach to this is simply by creating a new repository, named whatever you want the path to be(qwerty.com/path). After you create a repository with the path’s desired name, you have to go to “Settings” then to find “GitHub Pages”…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants