Cannot get .htaccess to work
Posted by: Dmacman (
Date: March 26, 2006 09:02PM

Hello everyone,

I have been using WAMP for a while, but now I want to secure some directories and I am apparently missing something.

I have my path for the wamp install as c:\wamp and the root of the server as c:\wamp\www .

I put my .htpasswd file in the wamp folder "above" my root folder of "www" .

In the "www" folder I have a folder called test and that is where my .htaccess file is.

Here is the contents of my .htaccess file...

AuthUserFile "C:\wamp\.htpasswd"
AuthName "Secured Site"
AuthType Basic

require valid-user

The password file just contains the username: user and password: password .


When I go the site http:x.x.x.x/test

I get the index.html page for that folder. I should get a window asking me to login called "Secure Site" ???

In my httpd.conf I have the following set.

AccessFileName .htaccess

<FilesMatch "^\.ht">
Order allow,deny
Deny from all

I seem to be missing something here and any advice, would be appreciated.



Re: Cannot get .htaccess to work
Posted by: Dmacman (
Date: March 26, 2006 09:09PM

I figured it out.

Both my files had .txt as the name from wordpad.

But my question is, How do you save it without a file type?

Windows would not let me save it without a file type in the name.

The way I got around it ws to copy the files of one of our servers, edit it with my info and save it locally on my server.



Re: Cannot get .htaccess to work
Posted by: Dmacman (
Date: March 26, 2006 10:00PM

I spoke to fast.

I DID get to ask for the username and password, but not, it will not accept them.

It keeps asking me for the username and password.

I confirmed the spelling of both and used...


to generate the password and then pasted into my file.




Re: Cannot get .htaccess to work
Posted by: studentu777 (193.227.236.---)
Date: March 30, 2006 12:26PM

I had the same problem...The only solution I have is to put the passwords in plain text
like this user1:thisismypassword

This is not OK...I know that the password must be encripted but this is the only way I succed to login using wamp

I really want to know what should I do to make wamp to read an encriped password

Let me know if You find out

Re: Cannot get .htaccess to work
Posted by: Reyyan (---.CITMATEL.NET)
Date: March 30, 2006 05:52PM

To save a file like you want for example open .htaccess_root or .htaccess.txt in the notepad
go to save as - in the field type of the file put -all files-. then save it as .htaccess
very easy.

Sorry, only registered users may post in this forum.