Skip to content
Snippets Groups Projects
Commit 3258ecf1 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

deny access to .git directories in .htaccess

parent ba85926b
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,11 @@
</IfModule>
</Files>
## Don't allow access to git directories
<IfModule alias_module>
RedirectMatch 404 /\.git
</IfModule>
## Uncomment these rules if you want to have nice URLs using
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
#RewriteEngine on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment