Ifディレクティブを使って \x2F で挟んであげる
<If "%{REQUEST_URI} =~ /\x2Fspecial-page\x2F.*/">
AuthType Basic
AuthName "Input your ID and Password."
AuthUserFile /path/to/.htpasswd
AuthGroupFile /dev/null
Require valid-user
</If>
おわり。
More than 1 year has passed since last update.
Ifディレクティブを使って \x2F で挟んであげる
<If "%{REQUEST_URI} =~ /\x2Fspecial-page\x2F.*/">
AuthType Basic
AuthName "Input your ID and Password."
AuthUserFile /path/to/.htpasswd
AuthGroupFile /dev/null
Require valid-user
</If>
おわり。
Register as a new user and use Qiita more conveniently