Skip to content

Instantly share code, notes, and snippets.

@katapad
Created May 31, 2013 10:22
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 katapad/5684131 to your computer and use it in GitHub Desktop.
Save katapad/5684131 to your computer and use it in GitHub Desktop.
imgとかはCDNにしつつ、.htmlだけ見えなくするhtaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
<Files ~ "\.(html)$">
AuthType Basic
AuthName "enter id and pass"
AuthUserFile /srv/hogehoge/public/.htpasswd
require valid-user
</Files>
DirectoryIndex index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment