.htaccess - protecting root folder, but not subs

Discussion in 'Site & Server Administration' started by rochow, Mar 7, 2009.

  1. #1
    I want to deny access to the root directory unless they enter the user/pass, however if they go to a subfolder they can view it.

    For example:
    mysite.com (prompt for user/pass, if successful list folders per default)
    mysite.com/somefolder/ (no prompt for user/pass just show)

    Right now I used the cpanel password protect manager, and everything is protected... help appreciated!
     
    rochow, Mar 7, 2009 IP