# .htaccess (dot files in general) ignored in subdirectories

**URL:** https://talk.jekyllrb.com/t/htaccess-dot-files-in-general-ignored-in-subdirectories/341
**Category:** Help
**Created:** [March 19, 2017, 11:43pm UTC](https://talk.jekyllrb.com/t/htaccess-dot-files-in-general-ignored-in-subdirectories/341 "2017-03-19T23:43:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![etg](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/etg/32/134_2.png) [@etg](https://talk.jekyllrb.com/u/etg)
#### Post date: [March 19, 2017, 11:43pm UTC](https://talk.jekyllrb.com/t/htaccess-dot-files-in-general-ignored-in-subdirectories/341/1 "2017-03-19T23:43:10Z")

</div>

Hi there,

I cannot get a .htaccess included in the output if the file is in a subdirectory.

My file resides in `_pages/subdir/.htaccess`. In my config file, I use

> `collections:`  
> ` pages:`  
> ` output: true`  
> ` permalink: /:path.html`

to use all pages in `_pages` without the path `_pages`

This works fine but not for the `.htaccess` file. It is ignored in the output.

I tried in my config

> `include:`  
> ` - '.htaccess'`  
> ` - '_pages/.htaccess'`  
> ` - '_pages/subdir/.htaccess'`  
> ` - '*/.htaccess'`

nothing works so far.

Is this a known problem, should I file a bug report or is there a solution for this problem that I don’t see.

Thanks,

Greetings, Ekkart.

---

<div class="post-metadata">

### Author: ![pathawks](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/pathawks/32/1317_2.png) [@pathawks](https://talk.jekyllrb.com/u/pathawks)
#### Post date: [March 24, 2017, 10:58pm UTC](https://talk.jekyllrb.com/t/htaccess-dot-files-in-general-ignored-in-subdirectories/341/2 "2017-03-24T22:58:22Z")

</div>

Collections are capable of including static files like images, so they should definately be capable of including an `.htaccess` file as well.

This is not a known issue as far as I am aware. Please do [open an issue](https://github.com/jekyll/jekyll/issues/new) and please also `/cc: @pathawks` on that issue.

---

<div class="post-metadata">

### Author: ![etg](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/etg/32/134_2.png) [@etg](https://talk.jekyllrb.com/u/etg)
#### Post date: [May 25, 2017, 9:52pm UTC](https://talk.jekyllrb.com/t/htaccess-dot-files-in-general-ignored-in-subdirectories/341/3 "2017-05-25T21:52:51Z")

</div>

Thanks for the answer, sorry for my delay in response.

I just created the bug report: [https://github.com/jekyll/jekyll/issues/6091](https://github.com/jekyll/jekyll/issues/6091)
