Help using htaccess to protect a testing area

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrdon
    Senior Member
    • Oct 2006
    • 101

    Help using htaccess to protect a testing area

    I am trying to set up a copy of my VB forum so that I can do some tests with mods, designs, etc.

    My current live forum runs at the root of my site. I have created a copy of my forum and placed it in a directory called testing. I have created an .htpasswd file and placed it in this new directory (testing), and in the .htaccess file on the root of my site (where my live forum is at) I have added the following code:

    Code:
    AuthType Basic
    AuthName "My Protected Area"
    AuthUserFile /home/mysite/public_html/testing/.htpasswd
    Require valid-user
    The problem I am running into is that now both my live site and my testing site are requiring passwords?

    I'm I doing something wrong?
  • BirdOPrey5
    Senior Member
    • Jul 2008
    • 9613
    • 5.6.3

    #2
    I usually put the files in the /testing/ directory, not the root.

    Comment

    • mrdon
      Senior Member
      • Oct 2006
      • 101

      #3
      Originally posted by Joe D.
      I usually put the files in the /testing/ directory, not the root.
      I tried that but then I get a "Page not found" error.

      Comment

      • BirdOPrey5
        Senior Member
        • Jul 2008
        • 9613
        • 5.6.3

        #4
        This is exactly what I have and it's in the .htaccess file is in the /test/ directory
        Note the passwd file is NOT in the same directory

        Code:
        AuthName "test site"
        AuthUserFile "/home/username/.htpasswds/public_html/test/passwd"
        AuthType Basic
        require valid-user

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...