Skip to content

Instantly share code, notes, and snippets.

@roblg
Created August 18, 2011 06:24
Show Gist options
  • Save roblg/1153486 to your computer and use it in GitHub Desktop.
Save roblg/1153486 to your computer and use it in GitHub Desktop.
.htaccess for hiding .git subdirectory
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/[.]git.*
RewriteRule ^ - [L,R=404]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment