Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Cannot remove custom domain #1213

Closed
OKNoah opened this issue Apr 5, 2018 · 45 comments
Closed

Cannot remove custom domain #1213

OKNoah opened this issue Apr 5, 2018 · 45 comments

Comments

@OKNoah
Copy link

OKNoah commented Apr 5, 2018

I configured a custom domain on my project and my github.io address redirects to it.

However, I now need to remove it and return to github.io, if possible.

How do I prevent github.io from redirecting?

@coliff
Copy link

coliff commented Apr 6, 2018

Remove the CNAME file from the repo.

@OKNoah
Copy link
Author

OKNoah commented Apr 7, 2018

@coliff I can't locate any CNAME in the repo. Pretty sure this was set in settings. Perhaps making a new CNAME of ACCOUNT_NAME.github.io/REPO would work? Although doing this didn't work in settings.

@coliff
Copy link

coliff commented Apr 9, 2018

Hmm, maybe turn turning GitHub Pages setting off in Settings.. and then turning it back on. it should then show a 'Your site is published at: ACCOUNT_NAME.github.io/REPO message

@coliff
Copy link

coliff commented Apr 9, 2018

And make sure in the Settings the 'Custom domain' entry box is empty!

@OKNoah
Copy link
Author

OKNoah commented Apr 15, 2018

@coliff The box is empty, and when I click the drop down to select a branch for the Pages, the "none" option is disabled. I don't see another way to disable it. Sorry if I'm missing something obvious.

@coliff
Copy link

coliff commented Apr 17, 2018

Strange.. If you have control over the domain name I guess you could set it to NOT point at GitHub then it'd be impossible for it to resolve. Can you tell us the domain name so we can take a look? Is the GitHub repo public?

@OKNoah
Copy link
Author

OKNoah commented Apr 17, 2018

@coliff The domain name expired and is currently being squatted by the domain name registrar (perhaps I can buy it back). Also the repo is oknoah/slipstream on the, and data in the www branch.

@coliff
Copy link

coliff commented Apr 17, 2018

ugh, I'm running out of ideas... How about changing the repo name so the URL changes - maybe:
https://oknoah.github.io/slipstream_app or whatever.... worth trying.

@OKNoah
Copy link
Author

OKNoah commented Apr 17, 2018 via email

@coliff
Copy link

coliff commented Apr 17, 2018

Ah! Your user page us: https://oknoah.github.io and there's a repo for that - and I found this!
https://github.com/OKNoah/oknoah.github.io/blob/master/CNAME - it is the expired domain name.
Can you try removing that?

@OKNoah
Copy link
Author

OKNoah commented Apr 17, 2018 via email

@davidmisiak
Copy link

I had the same problem and even when I removed everything that seemed to be connected to the Github Page, redirecting to incorrect website persisted. Turned out that it was due to Chrome cache - after deleting browsing data, the redirection vanished. I just thought it might help someone.

@mahdiASC
Copy link

https://github.com/USERNAME/USERNAME.github.io/blob/master/CNAME

I was lost without this!

Apparently your user's GitHub domain automatically comes from your {username}.github.io repo.
Come to find out the CNAME file there was doing the redirecting.

@KarelWintersky
Copy link

Same issue.
Removed CNAME, cleared field Custom domain, but
https://imaginariaru.github.io/RPGLinks/
redirecting to http://rpglinks.wintersky.me/

@coliff
Copy link

coliff commented Nov 12, 2018

@KarelWintersky - the CNAME is still on your repo:
https://github.com/imaginariaru/rpglinks

Delete the CNAME and it'll stop redirecting.

@KarelWintersky
Copy link

@coliff

now it works correct.
But: I can't set CNAME for Project Repo Inside Origanization.

@coliff
Copy link

coliff commented Nov 12, 2018

@KarelWintersky you can set the CNAME for a project repo isnside an organization - I've done it before myself for https://caniuse.email at: https://github.com/caniuse-email/caniuse.email/tree/master/docs

@KarelWintersky
Copy link

@coliff
What are you wrote at your DNS provider?
A-records to github ips or CNAME to... what?

@coliff
Copy link

coliff commented Nov 12, 2018

I use (and recommend) https://Cloudflare.com for this. A-records are pointing to GitHub.

@KarelWintersky
Copy link

@coliff
A-records at your DNS provider and CNAME file in repo?

@coliff
Copy link

coliff commented Nov 12, 2018

Yes

@KarelWintersky
Copy link

@coliff, thank you. I'll try/.

@lijon
Copy link

lijon commented Nov 14, 2018

https://stackoverflow.com/questions/9130422/how-long-do-browsers-cache-http-301s

@mohmdalfaha
Copy link

No way !! I really got fed up with this stupid issue and even thought of migrating to Gitlab lmao
It was only the Chrome cache issue

Thanks !!

@TPS TPS added the invalid label Mar 3, 2019
@TPS TPS closed this as completed Mar 3, 2019
@ghost
Copy link

ghost commented Mar 27, 2019

I have same problem.
why not reset? I have no Idea.
CNAME delete and rebuild

egeldenhuys added a commit to egeldenhuys/egeldenhuys.github.io that referenced this issue Nov 13, 2019
@frtug
Copy link

frtug commented Dec 11, 2019

I have deleted the CNAME but it still redirects from the previous domain that I don't have

@justin226
Copy link

worked for me

@trickster
Copy link

I have the same problem. CNAME was deleted. But still my domain https://kons.dev still redirects to Github
https://github.com/sivakon/sivakon.github.io/commit/cfbab2d26631b237e4ff39f67a4cfdde37489a20

@taufardh
Copy link

taufardh commented Apr 9, 2020

and now I face same problem... still redirecting to expired domain

@TPS TPS added bug and removed invalid labels Apr 9, 2020
@TPS TPS reopened this Apr 9, 2020
@TPS
Copy link
Collaborator

TPS commented Apr 9, 2020

Have any of y'all contacted GitHub support (support@github.com, ifF memory serves, or definitely the Support link at bottom of any GitHub page), pointing @ this issue, & then gotten any response?

@taufardh
Copy link

Have any of y'all contacted GitHub support (support@github.com, ifF memory serves, or definitely the Support link at bottom of any GitHub page), pointing @ this issue, & then gotten any response?

tbh.. I already solve my problem. there is a problem with cache in the browser, so the browser keeps redirect domain. but if cache cleared or open in incognito mode it's work fine. And there is a time delay from remove custom domain to become default github pages again.

@TPS TPS added the invalid label Apr 11, 2020
@TPS TPS closed this as completed Apr 11, 2020
@Rubix982
Copy link

Rubix982 commented Jun 3, 2020

Was facing the exact same issue! I had no CNAME file at my repo. Using the above suggestions, what worked for me was that I deleted my cache and it worked like magic.
Thanks, guys!

@i-emek
Copy link

i-emek commented Jun 3, 2020

Try to remove cache. I disabled cache and re-enabled it and it did the trick.
f12 -> network tab -> disable cache
After that, refresh page, and voilà, the page works.

@hugocamelo
Copy link

if I delete a entire repo with CNAME and everything will it stop redirect too?

@amanmishra17
Copy link

https://github.com/USERNAME/USERNAME.github.io/blob/master/CNAME

I was lost without this!

Apparently your user's GitHub domain automatically comes from your {username}.github.io repo.
Come to find out the CNAME file there was doing the redirecting.

it worked for me I removed the CNAME and it worked. Thanks.

@Mondonno
Copy link

Mondonno commented Oct 1, 2020

I try to disable github pages on my site but always:
Zrzut ekranu 2020-10-1 o 15 33 11
I do not know what to do, i privated my repo, so the github pages must disable but they not
Please help!

@Gibbo3771
Copy link

This is still busted.

I added my custom domain name with intention of using it, but then found out Cloudflare charge for resolving using page rules. Now I want to remove it and I just can't.

The custom domain box is empty and there is no CNAME file on any of my branches.

@coliff
Copy link

coliff commented Nov 27, 2020

@Gibbo3771 -it might take a little while for the DNS settings to propagate. Double-check the DNS settings in Cloudflare (make sure they aren't pointing to GitHub).

@Gibbo3771
Copy link

@coliff I never even got to adding it to Cloudflare. When I go to my pages link, it's redirecting me to my domain. So this is Githubs DNS that is either not propogating properly, or the setting is never removed.

@coderpranay
Copy link

@coliff
I configured a custom domain on my project and my github.io address redirects to my custom domain.
Can you tell how i can remove?

@coliff
Copy link

coliff commented Jan 11, 2021

@coderpranay delete the CNAME from the project if you don't want it there. if you need more help provide more details (maybe repo of your project)

@masoncooley
Copy link

I had to clear browser cache after I deleted the CNAME file for it to work.

@seahopki12
Copy link

Interesting. Same issue. I can view the page in incognito, but clearing cache doesn't not seem to do anything, nor does there appear to be any cache data to begin with.

https://github.com/seahopki12/React_Portfolio

@seahopki12
Copy link

^ I think I fixed my own issue.

Initially, I tried clearing my cache from the developer tools:

F12 -> application -> storage -> check cache boxes -> clear site data.

This did not work for me.

Then, I tried the following method:

Chrome -> Clear browsing data... -> Select cached images and files -> clear data.

That did the trick for me.

@MrTyton
Copy link

MrTyton commented Jun 2, 2021

Wait, is there a way if you have the {name}.github.io set up to not have a project be under that subdomain? I explicitly don't want that for one of my projects, I would much rather prefer the default github page.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests