Question:
I created a web page using GitHub Pages. I added the custom domain by following theSettings>Pages
path. The page redirect was successfully performed by creating the CNAME
file.
I wanted to cancel the page redirect after a while. Therefore I removed the CNAME file and followed all the steps mentioned in the documents. But I was not able to cancel the page redirect. How can I fix this problem?
Answer:
Since the website redirect is saved in the browser’s cache, the redirect will continue even if the redirect is cancelled via theSettings>Pages
tab on GitHub; this will automatically cause the CNAME
file to be deleted. The way to solve this problem:- Remove the previous redirect by going to
Settings>Pages
on GitHub. - Rebuild the page via the Actions tab on GitHub.
- Click the F12 while the browser is open.
- Long click on the refresh button on the browser.
- Select the
Empty Cache and Hard Reload
option.

When you try to enter the website again, you will see that the redirect has been cancelled.
If you have better answer, please add a comment about this, thank you!
Leave a Review