![]() |
|
new installation and .htaccess newbie questions - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: new installation and .htaccess newbie questions (/thread-1828.html) |
new installation and .htaccess newbie questions - spike - 2007-11-18 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 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. new installation and .htaccess newbie questions - sbillard - 2007-11-18 The answer to your first question is yes, change it to I would think that you can just add your password stuff to the front of the .htaccess file, but I have never done this. new installation and .htaccess newbie questions - spike - 2007-11-18 Thank you, sbillard. 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 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. |