Unable to access resources in folder( with name starting with .) #22592
-
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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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: |
Beta Was this translation helpful? Give feedback.
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/