From c3db6c3100a98c53a61787cf07c25d64c732e973 Mon Sep 17 00:00:00 2001 From: root <root@rivolta.investici.org> Date: Fri, 10 Dec 2010 16:03:44 +0000 Subject: [PATCH] Let apache ignore our .git directory --- .htaccess | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.htaccess b/.htaccess index ebc0b1778..040f4dfbd 100644 --- a/.htaccess +++ b/.htaccess @@ -46,3 +46,11 @@ RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L] # END WordPress + +# BEGIN noblogs + +# .git doesn't exist +RedirectMatch 404 /\\.git(/|$) + +# END noblogs + -- GitLab