Showing ownly readme file #23707
-
I developed a react site with my custom domain and it’s only showing readme file. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Hello @hainhtat , I checked your repo and looks like you have an html file at the root level which is good. https://github.com/hainhtat/hainhtat.github.io/blob/c70ae934e47b7a04defd08d0ad86092dda208d16/index.html If you want to bring up a Let us know if you still face any issues |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help but I’m a bit confused. The File name is already index.html. I want to show that index.html from gh-pages branch but instead readme from main branch is shown. |
Beta Was this translation helpful? Give feedback.
-
It looks like your Pages site is set to build from the |
Beta Was this translation helpful? Give feedback.
-
I have changed the master to gh-pages but it showed error 404 there isn’t a github pages site here. |
Beta Was this translation helpful? Give feedback.
-
You’ll need to link your custom domain again. GitHub attaches a custom domain to a repository by creating a file called You can fix it by adding the custom domain in the repository settings! |
Beta Was this translation helpful? Give feedback.
-
I have added the CNAME file in the gh-pages and received a mail that says that my ip address is outdated. Here is my dns record |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help. I changed the dns settings and finally got it. |
Beta Was this translation helpful? Give feedback.
-
Nice! 😄 Yeah, I think those are the old Pages IPs, so you’d need to change your Managing a custom domain for your GitHub Pages site - GitHub Docs |
Beta Was this translation helpful? Give feedback.
You’ll need to link your custom domain again. GitHub attaches a custom domain to a repository by creating a file called
CNAME
in the root of your site’s publishing source that contains the domain. As you’ve changed the deployment branch that file is now not present, meaning your domain has become unlinked.You can fix it by adding the custom domain in the repository settings!