Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created October 16, 2017 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/4d4ae7effb62b7edeac19ab2b5bb887a to your computer and use it in GitHub Desktop.
Save miguelmota/4d4ae7effb62b7edeac19ab2b5bb887a to your computer and use it in GitHub Desktop.
.htaccess hide .git directory
# in root .htaccess
RedirectMatch 404 /\.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment