スポンサーリンク

BASIC認証を特定のディレクトリだけ除外する

WordPrwss
スポンサーリンク

特定のディレクトリだけBASIC認証を除外する必要があったのでやってみっました。

除外したいディレクトリに下記の内容を書いた.htaccessを設置します。

Satisfy Any
Order allow,deny
Allow from all
Deny from none

パスワードを聞かれることなく、除外したディレクトリ内を閲覧できました。

当ブログの記事は全て記載した時点での内容となります。ご覧頂いた時期によっては情報が古くなっていることがあります。

WordPrwssHTML・CSS雑記
スポンサーリンク
シェアする
periodをフォローする

コメント

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny

タイトルとURLをコピーしました