You are here:  » .htaccess & password


.htaccess & password

Submitted by thepricesite on Thu, 2007-02-15 09:47 in

Morning all,
I'm struggling to setup a .htaccess access file on my site.
Please can someone explain how i create this and where i place the files?
I'm not sure how but i created a file but the username/password doesn't seem to work fully!?

Regards,

Michael

Submitted by support on Thu, 2007-02-15 15:43

Hello Michael,

.htaccess password protection can be difficult to setup if you are not used to it. The most common problem is due to the fact that .htaccess has to reference the password file with a full path, so you need to know what this is on your server and this is not always easy. Basically, you need a .htaccess file in your /admin directory that looks something like this:

AuthType Basic
AuthName "Price Tapestry Administration"
AuthUserFile /path/to/admin/.htusers
Require valid-user

Then, you need to create a .htusers file (in the same directory) which contains your username and encrypted password. Have you been able to create the password file?

Hope this helps!
Cheers,
David.

Submitted by thepricesite on Fri, 2007-02-16 13:41

Hi David - yes i have managed to create a password file via a third party tool which generated it for me.
I'll have a look over the weekend when i have a bit more time. But yes, is a bit confusing when you are used to good ole NT security

Michael @ ThePriceSite

Submitted by magnaromagna on Fri, 2008-04-18 09:23

Hello,
I made a protection using cpanel tool in two sites:
- in one site the script is on the root, and was all ok
- in another site the script is in a subfolder, i modified the path accordly, but when I digit the /admin url I receive "not found". Could be a conflict with the .htaccess in the root (vbseo)