You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
.htaccess file cannot be found anywhere in the _site directory.
The expected behavior
.htaccess file appears in the root of the _site directory.
Notes
We have this line in the current version (1.7.0:) 3d9d64e
which fixed #47.
However, maybe because of this line, I'm not getting my .htaccess file to show up anywhere in the _site folder like it was not explicitly included outright.
The commit message says that this line should take effect after the pages for the base language are constructed (hence the expected behavior,) but it's not doing that.
Currently, I have to manually copy the .htaccess file, which is already causing deployment mistakes here and there. Issue #47 is for Jekyll 2.x, so it's possible that the internal working of Jekyll changed across major versions.
The text was updated successfully, but these errors were encountered:
I found a workaround. Use the keep_files directive in _config.yaml.
Usually, Jekyll wipes the _site directory (the output directory) clean before each build. This key will tell Jekyll to leave the specified files in the output-dir intact.
So you want to write this in your _config.yaml...:
keep_files:- .htaccess
...and either:
put your .htaccess in your _site directory or
put your .htaccess somewhere else, and symlink it to _site/.htaccess.
This may be related to #47.
Summary
It seems that
include: ['.htaccess']
inconfig.yml
is negated by this plugin.Environment
Steps to reproduce
include: ['.htaccess']
jekyll serve
orjekyll build
The BUG behavior
.htaccess
file cannot be found anywhere in the_site
directory.The expected behavior
.htaccess
file appears in the root of the_site
directory.Notes
We have this line in the current version (1.7.0:)
3d9d64e
which fixed #47.
However, maybe because of this line, I'm not getting my .htaccess file to show up anywhere in the
_site
folder like it was not explicitly included outright.The commit message says that this line should take effect after the pages for the base language are constructed (hence the expected behavior,) but it's not doing that.
Currently, I have to manually copy the
.htaccess
file, which is already causing deployment mistakes here and there. Issue #47 is forJekyll 2.x,
so it's possible that the internal working of Jekyll changed across major versions.The text was updated successfully, but these errors were encountered: