forked from getgrav/grav
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing configs, gitignore and data folder
- Loading branch information
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Composer | ||
composer.lock | ||
|
||
# Sass | ||
.sass-cache | ||
|
||
# OS Generated | ||
.DS_Store* | ||
ehthumbs.db | ||
Icon? | ||
Thumbs.db | ||
*.swp | ||
|
||
# Grav Specific | ||
/cache | ||
/logs | ||
/images | ||
/user/data/* | ||
!/user/data/index.html | ||
|
||
# phpstorm | ||
.idea/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
|
||
# access site | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule . index.php [L] | ||
|
||
# block various user files from being accessed directly | ||
RewriteRule ^user/accounts/(.*)$ error [R=301,L] | ||
RewriteRule ^user/config/(.*)$ error [R=301,L] | ||
RewriteRule ^user/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ error [R=301,L] | ||
|
||
# block cache | ||
RewriteRule ^cache/(.*) error [R=301,L] | ||
|
||
# block bin | ||
RewriteRule ^bin/(.*)$ error [R=301,L] | ||
|
||
# block system | ||
RewriteRule ^system/(.*)$ error [R=301,L] | ||
|
||
# block vendor | ||
RewriteRule ^vendor/(.*)$ error [R=301,L] | ||
|
||
</IfModule> | ||
|
||
# Prevent file browsing | ||
Options -Indexes |
Empty file.