
私はWordPressサイトを持っていますが、.htaccesメソッドを使用して特定のURL(site.com/training/privateおよび/private/に続くすべてのURL)へのユーザーアクセスを制限したいと考えています。
私は以下の方法を使用しました
SetEnvIfNoCase Request_URI "^/private/" noauth
AuthType Basic
AuthName "Identify yourself"
AuthUserFile /pathto/.htpasswd
Require valid-user
Order Deny,Allow
Deny from all
Allow from env=noauth
Satisfy any
これは機能していないようですが、この方法を機能させるための回避策はありますか?