Browse Source

return 404 for .git files and folders

v1
Jake Jarvis 4 years ago
parent
commit
8c17ebfbb5
  1. 3
      .htaccess

3
.htaccess

@ -7,3 +7,6 @@ RewriteCond %{HTTP_HOST} ^www.jakejarvis.org$ [OR]
RewriteCond %{HTTP_HOST} ^jakejarv.is$ [OR]
RewriteCond %{HTTP_HOST} ^www.jakejarv.is$
RewriteRule (.*)$ https://jakejarvis.com/$1 [R=301,L]
RedirectMatch 404 /\.git

Loading…
Cancel
Save