Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Htaccess problems

    Hello Everyone!

    Not sure if this is the right place to post if not please move me.

    Okay I have a problem with htaccess.
    I place the below in a file called - .htaccess
    --------
    AuthUserFile .htpasswd
    AuthGroupFile /dev/null
    AuthName "Cigarette Lounge"
    AuthType Basic

    <Limit GET POST>
    require valid-user
    </Limit>
    ---------

    IT WORKS - BUT
    It pertects the whole site!
    I placed the htaccess file in a single folder. The thing is I have done this hundreds of times and this has worked. But for some reason it is trying to password protect the whole site ALL FOLDERS.

    It does not make any sense. Can someone please help me.

    Any suggestions are welcome.
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if you put your .htaccess file in a folder, it applies what it does to that folder and all sub folders. So if you place it in the root directory it will affect the entire site.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yea, But thats what is very weird, The .htaccess file is in a folder all its own, the root folder (main folder) does not have any htaccess in it.

    Anyways I figured it out, the administrature put like global settings on that folder making it have effect on the entire site. Once we removed that it works perfectly.

    Thanks for your relpy scroots
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog


  •  

    Posting Permissions

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