1
0

Updated .htaccess to not display git directories and files

This commit is contained in:
Aaron Lindsay 2011-02-24 12:36:54 -07:00
parent 6f2f38ad55
commit d5ffa39d25

View File

@ -7,3 +7,7 @@ ErrorDocument 401 /errors/401.php
ErrorDocument 403 /errors/403.php
ErrorDocument 404 /errors/404.php
ErrorDocument 500 /errors/500.php
#Deny access to git files (actually, return 404 errors)
RedirectMatch 404 /\\.git(/|$)
RedirectMatch 404 /\\.gitignore$