PDA

View Full Version : .htpasswd


Dound
10-12-04, 04:14 PM
This is my htaccess file in a folder on my site (u and user have my username in the actual file). Why does the page only prompt for a password if I include www.domain.com, but not if I try http://domain.com?

Thanks.

RewriteEngine On
Options +FollowSymlinks

AuthUserFile /www/u/user/.htpasswd
AuthGroupFile /dev/null
AuthName "You must authenticate to view this folder"
AuthType Basic
require user username

BerksWebGuy
10-12-04, 04:17 PM
Did you close your browser when testing this. You are authenticated until you close your browser.

So try one, close browser, open browser, try other one.

Dound
10-12-04, 04:21 PM
Ah, that's it. I didn't realize that it kept you logged until you closed your browser. Thanks.

BerksWebGuy
10-12-04, 04:24 PM
Glad you got it going :cool: