make .git inaccessible via web
This commit is contained in:
@@ -8,3 +8,6 @@ RewriteRule ^([^/]+)/?$ /index.php?m=$1 [L]
|
|||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^([^/]+)/([^/]+)/?$ index.php?m=$1&t=$2 [L]
|
RewriteRule ^([^/]+)/([^/]+)/?$ index.php?m=$1&t=$2 [L]
|
||||||
|
|
||||||
|
# Hide .git on webserver
|
||||||
|
RedirectMatch 404 /\.git
|
||||||
|
|||||||
Reference in New Issue
Block a user