.htaccess Responding - .passwd Failing

I'm told by my web host that my domain resides on an apache server.  I've read numerous tutorials to learn how to create .htaccess and .htpasswd files with the hope of offering controlled access to one folder within my domain.  Tech support does not offer assistance in this area, although I've been told by tech support that the server will respond to these files.

I have created both files being careful to use the syntax in the tutorials but have unsuccessful at gaining access to the restricted area.  It appears that .htaccess works (based on recognition of AuthName that I'm using). I've used several web-based sites to create encrypted passwords and pasted the results into my .htpasswd file using the recommended syntax. Permissions have been set at 644 for both files.  I've transferred them as ASCII files, etc.

I'm working on the premise that the problem is either the path to the password file in .htaccess is incorrect or that my webhost somehow prevents the use of these files in spite of what I'm told.  For the path, I've used "/folderwithpassword/.htpasswd" and "htpp://www.mydomain.com/folderwithpassword/.htpasswd" with no luck. Is it likely the problem may be the host or am I overlooking something?

Thanks for your assistance.
Who is Participating?
The path to the password file should be the full path to that file from the root of the server;  it is likely something like:


or the like.

The password file should be OUTSIDE the web hierarchy if at all possible.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.