Skip to content

Transferring .htaccess and .htpasswd Files to the Server #1798

Answered by bttrx
gpsblues asked this question in Help
Discussion options

You must be logged in to vote

@dziudek Same here.

Publii 0.46.2 (build 16966) ignores all files with a leading ., except .htaccess. These files are added to the output directory, but not to files.publii.json.

The offending line is:

if(file.indexOf('.') !== 0 || file === '.htaccess' || file === '_redirects') {

file.indexOf('.') !== 0 checks whether the filename does not start with a dot. This excludes hidden files.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bttrx
Comment options

Answer selected by gpsblues
@bttrx
Comment options

@dziudek
Comment options

dziudek Dec 21, 2024
Collaborator

@bttrx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants