I’ve been looking at many different threads here and online but I can’t seem to get my problem fixed.
My page was originally working as intended under username.github.io/projectname but after I added a custom domain it brings up a blank page and going into the console it says I have 404 errors. I also have the CNAME file included too.
Custom domain name is bought from Google and I am using a project page repo and not the profile one.
(I’ve been making a lot of changes trying to fix this but I hope it’s not messing it up. I did wait 24 hours after first inputing the custom domain name but it seems to still give the same errors, thus all the changes you see now is currently taking place.)
My google domain is set up like so.
and my github settings:
When I go to the website it opens up a blank page, I open up the console on “Network” and shows this:
So I’m assuming that since it’s reading the html file then Google must be working correctly and there’s something going on with my repo’s references, right?
When I click on each error I can see the request url is not including the docs/ folder in the path file. So I tried manually adding in the path but that still doesn’t work.
I’ve been trying to edit the docs/404.html and docs/index.html pages by changing either the href or src but no luck.
Most of the other tutorials online seem to only refer to the github profile version of _username.github.io _but some of them mentioned that it should work for both profile and project pages on the google domain.
I’ve been stuck on this for hours now