Updated .htaccess to not display git directories and files
This commit is contained in:
parent
6f2f38ad55
commit
d5ffa39d25
@ -7,3 +7,7 @@ ErrorDocument 401 /errors/401.php
|
|||||||
ErrorDocument 403 /errors/403.php
|
ErrorDocument 403 /errors/403.php
|
||||||
ErrorDocument 404 /errors/404.php
|
ErrorDocument 404 /errors/404.php
|
||||||
ErrorDocument 500 /errors/500.php
|
ErrorDocument 500 /errors/500.php
|
||||||
|
|
||||||
|
#Deny access to git files (actually, return 404 errors)
|
||||||
|
RedirectMatch 404 /\\.git(/|$)
|
||||||
|
RedirectMatch 404 /\\.gitignore$
|
||||||
|
Loading…
Reference in New Issue
Block a user