htaccess issue

Discussion in 'Nginx' started by Fracisc, Aug 2, 2014.

  1. #1
    I have a password set for all the directories named "testdir" on my server. I need to allow one of them to be without a password. How can I do that?
     
    Fracisc, Aug 2, 2014 IP
  2. acetz

    acetz Greenhorn

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    Please clarify "allow". Do you want to remove the password from that particular folder or by allow you mean the search engines??
     
    acetz, Aug 2, 2014 IP
  3. Fracisc

    Fracisc Well-Known Member

    Messages:
    3,670
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    195
    #3
    I want to remove the htaccess.

    I have many wordpress installs in my hosting account and I added password protect on the wp-admin folders.

    <FilesMatch "wp-login.php">
    AuthName "Authorized Only"
    AuthType Basic
    AuthUserFile /home/user/.wpadmin
    require valid-user
    </FilesMatch>

    ..now, site1.com/wp-admin is okay to be protected but I have users on my other wp and they cannot login or out with that password protection on. I need to disable it for that specific site.

    [edit] actually, the wp-login.php files are protected...
     
    Fracisc, Aug 2, 2014 IP
  4. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #4
    You can disable the password protection for a specific directory by creating a .htaccess file in that directory, containing the following line:

    RewriteEngine off
     
    RoseHosting, Aug 4, 2014 IP
  5. Fracisc

    Fracisc Well-Known Member

    Messages:
    3,670
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    195
    #5
    Yes... but it is wordpress, so I need htaccess..
     
    Fracisc, Aug 4, 2014 IP
  6. Shyamin Ayesh

    Shyamin Ayesh Active Member

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    76
    #6
    sorry for if I'm hijacking your thread, as per my knowledge htaccess is not working with nginx web server. so how you guys do htaccess things in nginx server or is this thread in wrong section ?? :/
     
    Shyamin Ayesh, Mar 11, 2015 IP