Issues getting to the right file when using a google domain pointing to github pages - html

Apologies in advance for the painfully newbie question but I am really stuck here.
I have a Google hosted domain: techpalewi.international
That I need to link to file, which is hosted on my github user page: porcoespinho.github.io/techpalehui_international_website/scripts/index.html
So far, I have:
Created a CNAME file on my Github project, pointing to the google domain (techpalewi.international)
I have created the Custom resource records as advised in github pages (i.e. A pointing to 192.30.252.153 and 192.30.252.154. And a CNAME record pointing to my github pages project repo: porcoespinho.github.io.)
So far I can get to the right page if I type:
http://techpalewi.international/scripts/index.html
but not if I only type the domain name:
http://techpalewi.international/
Can you please advise how I can get to the right file only pointing the domain name?
Thank you,
Luis

Kudos to Ryan Burgess # Netflix who kindly answered this question offline:
It turns out that when one uses a custom domain on GitHub pages, it defaults to landing the project's root page. Thus, the most efficient solution was to move the HTML and CSS files out of the scripts directory and into the root directory. This did the trick masterfully !!!!

Related

How to host my own website with my own html documents

I know this is the most basic of questions. I made my own website in HTML documents. I bought a domain name from google. How can I publish this, how can I host it? I don't want to use any website creator, I want to publish my own files that I worked on.
You can use Github to host your website on your own domain.
You have to add the whole files needed for the website. Then in the settings of your repo use the Github pages feature and enable it. Change the source of Github pages to host in your own domain. Then you have to add some A and CNAME records of your domain to point to github servers.
Here are the full steps for the process - https://www.geeksforgeeks.org/publish-websites-on-github-pages-with-a-custom-domain/

Create a Github Pages subdomain while main domain is elsewhere

I am trying to host a custom subdomain with Github Pages.
My apex domain (http://example.com) is pointing to a custom server (not Github Pages).
I am trying to get a subdomain of this (http://subdomain.example.com) to host a Github Pages site off a project page.
I have created a CNAME record for the subdomain pointing to http://username.github.io but it comes up with this error:
Your site's DNS settings are using a custom subdomain,
subdomain.example.com, that's set up as an A record. We
recommend you change this to a CNAME record pointing at [YOUR
USERNAME].github.io. For more information, see
https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/.
I have also tried moving the project to its own Github organisation and pointing the CNAME to organisationname.github.io but it has the same result.
In both instances I have waited 24 hours for the DNS to propagate.
I have tried following the official tutorials and searching in StackOverflow for answers but have not been able to find anything for this situation.
Is this even possible to do or do the A records for my http://example.com domain affect all the subdomains below it?
Found a solution with Github support.
Turns out the answer is yes you can. I just had my apex domain configured to use Cloudflare and totally forgot about it. I made the changes described in my original post in Cloudflare and it all worked fine.

How to publish a html page (generated with Rmarkdown)?

I use rmarkdown to create html pages. I would like to know how to publish, simply and efficiently, html pages.
Solutions that I know exist:
Web hosting: you can purchase a specific domain and host you your files. I have built some wordpress sites with this, but I don't know basics about web security, it is necessary to have a ftp transfer software.
With google drive, you can host html pages. It is quite simple, you can find the id the the shared document, and enter: googledrive.com/host/DocumentID. But you can not customise the domain name, and this url is redirected to a very complicated name.
It seems that github offers a lot of possilities. I think that some of you have already had the same problem and found the solution. So could you please share ? Thank you
you can host your html easily just check out this or this

Github pages organization blog doesn't run jekyll build

so, I have this github organization with its blog powered by Jekyll.
https://github.com/AvoGenie/avogenie.github.io
I would like github to run jekyll build on every commit, however currently it isn't doing it.
How can I fix this?
Any help is appreciated.
Kind Regards,
Adrian
PS: I checked google and stackoverflow but I couldn't find anything that helps me, because all guides and tutorials and docs just say, 'push to github'.
Your site seems fine to me, looking at the commits you currently have on the Github repository (latest commit on master right now = 14ca1e5).
What is different from what you expect?
So, turns out when I updated the repo I accidentally deleted the CNAME file that githubs needs in order to work with custom domains.
Two learnings from this:
Check whether you have a CNAME file when getting a 404 error on a custom domain with github pages
Also test the default username.github.io when deploying to github pages

Transferring Jekyll to custom domain

I'm trying to deploy my Github pages Jekyll site to my own domain. I have not successfully been able to do this with Glynn. Is there a simple way to do this?
Why not just have your own domain point to Github pages? You don't have to move anything, just associate your domain name with the Github Pages site;
https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/