Skip to content

Instantly share code, notes, and snippets.

@cjaoude
Last active Aug 29, 2015
Embed
What would you like to do?
Hide .git files and folders with .htaccess
RedirectMatch 404 "(?:.*)/(?:\.git|file_or_dir)(?:/.*)?$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment