Skip to content

GitHub Pages

Katorly edited this page Sep 2, 2024 · 1 revision

For a single project

  1. Navigate to your GitHub project repository, and click "Settings" in the top bar.

  2. Click "Pages" in the left sidebar.

  3. Type the custom domain in the "Custom domain" area, for example, example.rweb.site, and click "Save".

  4. After that, click "Code" in the top bar.

  5. You'll see a CNAME file was just created in your repository code. This is how GitHub Pages knows which domain to serve your site on. DO NOT delete it.

For a user or an organization

  1. Create a new repository named username.github.io or organization.github.io, where username is your GitHub username and organization is your GitHub organization name.

  2. The rest of the steps are the same as For a single project. Follow the steps above.

  3. Then you can create other repositories, for example, MyProject in your account, and the custom domain for this repository will automatically be example.rweb.site/MyProject.

Clone this wiki locally