Setting up GitHub Pages with Custom Domain - github

I hosted my website using GitHub Pages and was fully functional at
my-github-username.github.io
**Please Note: 'my-github-username' is just a placeholder
But I wanted to use it with a domain that I already had purchased so I looked it up and found some articles but none were helpful.
So far I added the custom domain to my GitHub repository.
I also created a CNAME record pointing to my-github-username.github.io
I also created 'A' records with 4 IP addresses that I found on GitHub documentation.
When I type my-github-username.github.io it points me to my domain successfully but it gives me a
403 Forbidden Error
and says
"You don't have permission to access / on this server."
I'd appreciate any help!

Related

Github pages <> Namecheap, Apex domain to redirect to subdomain

I'm using Github pages for hosting. Namecheap for DNS.
I want if going to "example.com" to send web browser requests to -> "blog.example.com."
I'm able to create and verify a custom domain on github pages for blog.example.com and it works, but not understanding how to redirect the apex root domain to blog.example.com.
Recap:
Custom github pages domain: blog.example.com && Namecheap: CNAME blog => example.github.io.
I tried removing all the suggested github A, AAAA records and trying the use of a URL redirect/301 and also tried an alias record of
"#" -> blog.example.com
URL redirect seems to result in a timeout, and the Alias record seems to result in going to github with a 404.
Seems these are the relevant github pages docs:
https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-a-subdomain
I've looked through this to no avail.
Am I doing something wrong?
Side Question:
I'm unsure if the CNAME file is required in github directory as I feel it's more or less for documentation? (changing this file doesn't seem to have any effect.)
I suppose I was just not being patient, unmasked redirect started working no problem after a while.

Issue with cloned website -domain hosting information missing in clone

When I cloned my web site with All-in-one WP Migration and overwrote another web site with this copy I lost the cloned website's domain hosting information how do I retrieve this?
When I now lookup the cloned website on IICAN I get these messages. My Original website is dancesportconfidence.com and it is still fine but the error has come up on the cloned copy of this website at dancestudio.com.au We are adding a Laravel theme to this to build a membership portal for our working website and I need to know the hosting information. I know that the name servers are through Cloudflare and Cloudflare has asked me to change the Name Servers to different ones.is but I'm not entirely sure who the WHOIIS server or the registrar is.
Domain Name Registration Data Lookup
Enter a domain name - dancestudio.com.au
Frequently Asked Questions (FAQ)LookupBy submitting any personal data, I acknowledge and agree that the personal data submitted by me will be processed in accordance with the ICANN Privacy Policy, and agree to abide by the website Terms of Service and the Domain Name Registration Data Lookup Terms of Use.
No registry RDAP server was identified for this domain. Attempting lookup using WHOIS service.
Failed to perform lookup using WHOIS service: TLD_NOT_SUPPORTED.
Can anyone help?

Google admin console use with github hosted website

I have purchased a domain through the google admin site (G suite), and I am trying to use it in conjunction with a page hosted on github. In google admin I have added a domain alias that is the url pointing to the github page I have hosted. And through github under the 'Github Pages' section of settings I have changed the custom domain to point to the purchased domain I have. But for some reason the webpage I have in my github repository is not displaying on the domain I have purchased. Instead when I navigate to the domain I have purchased, nothing displays, and when I go to the github url of my hosted page it reroutes me to my purchased url.
Am I doing something wrong?
Here's how I set up http://jsonp.therobinkim.com/ to point to https://therobinkim.github.io/lets-learn-jsonp.
On GitHub, from https://github.com/therobnkim/lets-learn-jsonp settings, I put jsonp.therobinkim.com under my GitHub Pages Custom domain settings.
On Google Domains, from my custom domain's DNS settings, I added a new Custom resource record:
jsonp, my custom subdomain (changed from default #)
CNAME, bc we're pointing to another website by name instead of IP address (changed from default A)
1m (changed from default 1h, but not necessary)
therobinkim.github.io (changed from placeholder IPv4 address)
It started working for me within 5 minutes.
I hope this helps!
You need to create a cname file on your github repository. It is as simple as creating a file called CNAME, then putting your domain on it, i.e. yourdomain.com

How to direct my website to my GitHub Pages Repository?

I am confused completely, because I used GoDaddy's website builder. Unfortunately, I am unable to connect my GitHub Pages Repository to my website, since I pre-built it. Is there any way I can connect my website to my GitHub Repo?
If for some reason at all that this isn't clear, here is what I am trying to say.
How can I take my website, and connect it to my repository, so that when I edit files in the repo that it affects the website also?
Github Pages repo (website in description on top of page): (https://github.com/comet-dev/comet-dev.github.io)
This is the process that worked for me using Google Domains, and should be applicable to GoDaddy as well. Keep in mind this means your site will be entirely reflected in the file structure in your GitHub repo, I do not know how to hook GoDaddy's website builder into this process other than to use it to create files and manually copy them into your repo.
Add a file named CNAME at the root of your public folder. This file should contain the root url of your webpage, e.g., www.example.com
Configure your domain at GoDaddy with the following DNS records. Hopefully this is easy to find under setting / DNS somewhere in GoDaddy. Google Domains and 1&1 both make this very easy.
Name: #, Type: A, Data: 192.30.252.153
Name: #, Type: A, Data: 192.30.252.154
Name: www, Type: CNAME, Data: <username>.github.io
The two A records contain IP addresses of GitHub's pages server and set you up to be able to respond to example.com rather than www.example.com.
Hopefully that should be it. It may take some time for the changes to propagate.

Custom domain for github using internetbs

I'm trying to configure the dns for my domain to target one of my pages in github
I'm currently using https://internetbs.net for domains but I can't seem to configure it correctly.
I tried searching for a solution but no luck.
I also use internetbs for my domains, and have hosted on github pages.This is how I got it working:
From Github
On your github pages branch (master for github user page, or gh-pages if it a project page) create a CNAME file. In it put just your domain, ie
thedomainyouhavebought.com
And commit this file (you can check its linked in the repo settings on in the github pages section.
From Internetbs.net
login on internetbs. Select your domain, and go to "DNS Management" section.
In here I set both the A Records and CNAME Records.
In A Records leave the name blank, and and in the IP section point it towards:
192.30.252.152
Add another A record that points towards:
192.30.252.153
In CNAME section, add the alias www, and then type the Host location on GitHub, for example if it is a github user pages site you will type:
username.github.io
For me it took about 10 mins to update.
You can check the its linked typing the following in to your terminal:
dig thedomainyouhavebought.com.
In the answer section, you should see a link to github pages.
for more info visit
https://help.github.com/articles/about-custom-domains-for-github-pages-sites/
https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/