.htaccess to Gallery

badcrc

Joined: 2005-07-05
Posts: 1
Posted: Tue, 2005-07-05 19:31

I just loaded G2, great work BTW! Everything works fine, but I would like to password protect the whole thing. I plan on creating several users within gallery, but would like an initial group of usernames and passwords before anyone can even see the main gallery page...

Can this be done with something as simple as a .htaccess file? --If so, what shall I put in it? If that isn't the proper method, how can I achieve this? I just don't like EVERYONE to see gallery. :x

Thanks much!!!

----

Gallery version: 2
Webserver (with version):
Datatabase (with version): mysql v12.22 Distrib 4.0.16
PHP version (eg 4.2.1): 4.3.11
Graphics Toolkit(s):
Operating system: FreeBSD 4.11-STABLE
Web browser/version: IE

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-05 19:47

sure, just put a .htaccess file in the gallery2 directory (in the directory where main.php, index.php, ... are in):

http://www.google.com/search?hl=en&q=htaccess+password+protect&btnG=Google+Search