Created
March 5, 2014 15:25
-
-
Save mattpavelle/9369392 to your computer and use it in GitHub Desktop.
Hide Git files from Apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RedirectMatch 404 /\.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Super simple way to 404 any Git files. This is superior to other error codes as it does not give away the fact that Git is even in use.