I created a web page using GitHub Pages. I added the custom domain by following the Settings>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?
CodePudding user response:
Since the website redirect is saved in the browser's cache, the redirect will continue even if the redirect is cancelled via the Settings>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>Pageson 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 Reloadoption.
When you try to enter the website again, you will see that the redirect has been cancelled.


