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... ?
There are two possible causes I can think of:
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.