Solution 1 :

I have found a fix.

Just add a file .nojekyll in the root of your site’s publishing source.

I would have commented, but I don’t have enough reputation points.

Solution 2 :

GitHub pages will not serve files or folders starting with a .. You will need to rename your folder so that it doesn’t start with this character, or use a different hosting service.

Problem :

I had to add a .fol-der/file.txt file to my github pages repo for verification on a platform.

Problem is, I get a 404 error when I enter in the search bar.

I am not using a site builder like Jekyll, just html files of my own.

Any idea why this could be happening? Thank you.


Comment posted by

Comment posted by phd

This is a good answer, no need to make it a comment.