Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 12

Github pages isn't working after switching from public to private and then back to public

Solved! Go to Solution.

I am using the free plan of github. After hearing the unlimited private repositories for free plans news, I thought I could make my personal website repo private. So I made the repo private. But then I noticed, github pages to work under private repo, you have to subscribe to github pro plans. So I revert back to public. But now my site isn't working. How can I re-enable my site?

update: My site is working because as I didn't get any solution, I have deleted my old repository and recreated it. Still I am waiting for a good solution.

11 Replies
Solution
Community Manager
Message 2 of 12

Re: Github pages isn't working after switching from public to private and then back to public

Unfortunately, we can't make a guess as to what might have gotten wedged that was preventing this from working. If anyone else runs into this, please reach out to GitHub Support at https://github.com/contact or support@github.com so they can take a deeper look at what the issue might be.

Copilot Lvl 2
Message 3 of 12

Re: Github pages isn't working after switching from public to private and then back to public

Any thoughts on how I can remedy this situation? I already sent an email to support.

I turned the repo to private, realized the page went 404. Made the repo public again and the 404 remains.

 

It looks like the UI settings where GitHub pages (page) use to be has changed considerably. I don't see any option to republish the page and the option to redirect my custom domain url.

Ground Controller Lvl 1
Message 4 of 12

Re: Github pages isn't working after switching from public to private and then back to public

This happened to me as well - I've also emailed support in hopes of a solution.

Ground Controller Lvl 1
Message 5 of 12

Re: Github pages isn't working after switching from public to private and then back to public

This problem seems to resolve itself if you push any commit to your pages branch.

Copilot Lvl 2
Message 6 of 12

Re: Github pages isn't working after switching from public to private and then back to public

What about master branch? I tried to make my repo public and did a push to master branch (only branch I have)

Ground Controller Lvl 1
Message 7 of 12

Re: Github pages isn't working after switching from public to private and then back to public

It did work for me after pushing to master branch

Ground Controller Lvl 1
Message 8 of 12

Re: Github pages isn't working after switching from public to private and then back to public

Thanks Bro. It also worked for me after pushing to the main branch. :)

Ground Controller Lvl 2
Message 9 of 12

Re: Github pages isn't working after switching from public to private and then back to public

Dude You free me from tensed.. Thanks Man :)

Copilot Lvl 2
Message 10 of 12

Re: Github pages isn't working after switching from public to private and then back to public

Plus one. Were you able to fix this issue? My page is down. I did the exact same thing as you. Also, I don't see an option to republish and add a redirect under settings no more.