Reputation: 433
I have member area and im try protect access to this url
http://site.com/wp/
with htaccess, all this working fine , here is code from my htaccess..
AuthName "My Site"
AuthType Basic
AuthUserFile /home/site/.htpasswd
AuthGroupFile /dev/null
require valid-user
But in same directory http://site.com/wp/
i have another folder where is my video and some application http://site.com/wp/app/
Now when user try access to site must enter username and pass because is protected with htaccess and when try play some videos from folder http://site.com/wp/app/
must enter again user and pass ?
Why 2 times must enter same username and pass ? And any idea how to fix this
I think should be asked once about login information... ?
Upvotes: 0
Views: 216
Reputation: 5977
There are two possible causes I can think of:
Upvotes: 1
Reputation: 24557
That does seem strange. Are you perhaps adding or removing a "www." prefix somewhere?
But why are you using htpasswd anyway? If you want to add password protection to pages in a WordPress site, just change the visibility to "Password protected" in the "Publish" options part of the editor page.
Upvotes: 0