hello,
I just installed Zenphoto into a subdirectory on my host and have a couple .htaccess questions about password protection and mod rewrite.
First, when I uploaded the zenphoto folder I changed to "photos". Do I need to change `RewriteBase /zenphoto ` to `RewriteBase /photos` in the pre-existing .htaccess that came with the zenphoto download?
Second, I usually use a .htaccess and .htpasswd to password protect my private directories. (I thought I had it at root but don't). Can I add this somewhere to the zenphoto .htaccess? and if yes, can I put it at the front of the file?
`AuthName "Secure"
AuthType Basic
AuthUserFile /my-complete-filepath/photos/.htpasswd
Require valid-user`
Then of course, I'd also put the .htpasswd file in the \photos directory too.
My goal is for no one to be able to see the front page of the gallery unless I've already sent them the exact url, a username, and password. (i.e. this will be a friends and family thing)
I'm a complete amateur at this stuff. Thank you.
Comments
I would think that you can just add your password stuff to the front of the .htaccess file, but I have never done this.
Changing the mod rewrite to /photos worked. Then I added the password text to the front of the .htaccess. It tooks some troubleshooting but I found that there can't be any blank lines between the `Require valid-user` and the `# htaccess file for zenphoto` line of code. No idea why.
Anyway, now anyone who goes to the mydomain\photos url has to sign in before they ever glimpse the gallery.
Next thing I'll try (when time permits) is using a separate .htaccess and .htpasswd in the albums so I can further restrict some people to some albums only. Many thanks.