www.webdeveloper.com
Results 1 to 3 of 3

Thread: htaccess file protecting but no pass prompt

  1. #1
    Join Date
    May 2011
    Posts
    8

    htaccess file protecting but no pass prompt

    Hi I have the following in a .htaccess file:

    AuthType Basic
    AuthName "restricted area"
    AuthUserFile /web/clients/.htpasswd
    require valid-user

    this works in making the directory private, however I get a 403 error and no password/user pop up appears to even give me the chance? Any ideas as to what I am doing wrong, both htaccess and htpasswd are together in the directory I want to protect.

    Thanks

  2. #2
    Join Date
    Mar 2011
    Posts
    1,109
    The path for AuthUserFile is probably incorrect. Yours reads '/web/clients/', which means that the directory '/web/' should reside in the root directory of the server, which would be unlikely unless you're running a private server. Locate the actual path to your web files and you should be able to construct the correct path to your .htpasswd file, or simply make sure that the .htpasswd file resides in the same directory as the .htaccess file and remove the path information completely.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    May 2011
    Posts
    8
    That worked, thank you!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles