Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

Unable to access resources in folder( with name starting with .)

Solved! Go to Solution.

I've hosted a page on github pages .

https://github.com/USERNAME/USERNAME.github.io

 

I'm unable to access the resources within the folders whose name starts with . like .well-known & .folder in my case.

 

Example :

Accessible : https://USERNAME.github.io/testfolder/test.html

UnAccessible with File not found error(404):  https://USERNAME.github.io/.well-known/assetlinks.json

 

Thanks

1 Reply
Solution
Copilot Lvl 2
Message 2 of 2

Re: Unable to access resources in folder( with name starting with .)

GitHub Pages uses Jekyll by default to build Pages sites. Because of the way that Jekyll works, any files or folders that start with _, ., # or end with ~ are not built:

https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/

If you're not using Jekyll, you can add an empty file named .nojekyll to the root of your publishing source to avoid this.

If you are using Jekyll, you can use the include directive in your _config.yml file to explicitly include these files/folders:

https://jekyllrb.com/docs/configuration/options/