Created
May 31, 2013 10:22
-
-
Save katapad/5684131 to your computer and use it in GitHub Desktop.
imgとかはCDNにしつつ、.htmlだけ見えなくするhtaccess
This file contains 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
<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