Results 1 to 2 of 2

Thread: .htaccess password protection

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default .htaccess password protection

    In my webspace I have a site that I wish to password protect. This is in a directory called chloe.

    I have uploaded the .htaccess file into chloe and created a directory called secure, also in the root of my space, ie parallel to chloe as recommended. In other words there are two directories, one called chloe and one called secure. In secure is the .htpasswd file which contains the user name and the encrypted password, created at

    http://tools.dynamicdrive.com/password/

    But it won't allow access. I suspect the problem is the path from the .htaccess file in chloe to the .htpasswd file up in secure. I have tried many variations, without success.

    The .htaccess file reads:

    AuthName "Chloe and Emily"
    AuthType Basic
    AuthUserFile ../secure/.htpasswd
    AuthGroupFile /dev/null
    require valid-user

    The .htpasswd file reads:

    March:68OKws6jYDy4A

    I arrive at the password entry box OK so the .htaccess file is working, so I am left with the an error in the path in the .htaccess file.

    Any help appreciated

  2. #2
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It was the path, now sorted and working.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •