Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Apr 2005
    Location
    Hatfield, England
    Posts
    855
    Member #
    9790
    I have the following structure in my website

    /main <-- root directory
    /main/templates <-- A directory in root.

    My .htaccess file is in the root directory
    My .htpasswd is in the template directory

    While the password box pops up it won't accept my password.

    .htaccess
    Code:
    AuthName "Admin Panel"
    AuthType Basic
    AuthUserFile /templates/.htpasswd
    require valid-user
    .htpasswd
    Code:
    user:password
    What am i doing wrong?

  2.  

  3. #2
    Junior Member
    Join Date
    Jul 2007
    Posts
    11
    Member #
    15573
    Just a word of warning; its not safe to put htpasswd files in web accessible folders, even if they are protected. If you can place them in a directory outside of the main site folder (if your web host lets you do this) it would be more secure. Now, onto the problem.

    Is your password encoded? Theres an explaination here on how to do it. This may solve your problems, but I cant actually see whats not working here. I always find htaccess useful, but configured differently on every server!
    :laugh:

  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    You have to encrypt the passwords.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:20 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com