Skip to content

Commit

Permalink
Add a customizing hidden files and directories section in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leojimenezcr committed Jul 31, 2017
1 parent 22202a5 commit 0a6f99a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,14 @@ Now you don't have to zoom in or be a sniper with your finger!
| Default | Fancy |
|:--------:|:------:|
|![before fancy index (mobile)](before_mobile.png) | ![after fancy index (mobile)](after_mobile.png)|

## Customizing hidden files and directories

If you want to hidde some files or directories, for example the `fancy-index` directory, there are a `IndexIgnore` directive in `.htaccess` file.

1. Edit `.htaccess` file in root directory.
2. Look for the "IGNORE THESE FILES" section.
3. Update the `IndexIgnore` directive with the path of files and directories to hide, separed by spaces.
* For example: `IndexIgnore .ftpquota .DS_Store .git /fancy-index`
4. Save the changes.
5. Reload the index page.

0 comments on commit 0a6f99a

Please sign in to comment.