Forum Moderators: phranque

Message Too Old, No Replies

Quick .htaccess question

         

seb3dge

8:13 pm on Jul 11, 2011 (gmt 0)

10+ Year Member



Hey everyone!

I have to create a very basic client login. You click on a link, a popup form (just like the “standard” .htaccess one) pops out, you type a password, and depending on the password you type, you get redirected to a specific folder (that way a client can check his own stuff easily)… Can this be accomplished with .htaccess alone? Since it’s not a high-security thing, I’d like to do it as simple as possible, without fussing with php and databases...

Also, keep in mind that I'm a total idiot when it comes to anything remotely related to server configurations, so I'd really appreciate a reply written like it's meant to be read by your grand-grand-mother, thanks ;)

Seb

g1smd

8:28 pm on Jul 11, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, look at the instructions for
.htpasswd


You can have one user name and password or a list of names and passwords.

It's a few lines of code to set it up.