Skip to content

Instantly share code, notes, and snippets.

@donwilson
Created April 12, 2019 19:21
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 donwilson/7bd7f978cce801d332da8499e3289dce to your computer and use it in GitHub Desktop.
Save donwilson/7bd7f978cce801d332da8499e3289dce to your computer and use it in GitHub Desktop.
.htaccess block .git directory, .gitignore, and composer files
RedirectMatch 404 ^/\.git
RedirectMatch 404 ^/composer\.(json|lock|phar)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment