.htaccess doesn't protect my folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paitoon
    New Member
    • Aug 2007
    • 62

    .htaccess doesn't protect my folder

    Helle
    I have problem about .htaccess in my site. My purpose is i want to protect a folder name's IMAGES in my site then i put .htaccess into that folder. But instead of the IMAGES folder will be protected but i could not open my site at all.seems like it not only protect the IMAGES folder but it protects to open my site also.
    what should i do ? and what is the actually syntext to do this?
    I use this systext;

    AuthUserFile /share/isp/plusnet/www/uu/username/htdocs/directory/.htpasswd
    AuthGroupFile /dev/null
    AuthName EnterPassword
    AuthType Basic

    require valid-user


    thank you so much for the further help
    Alex
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    Originally posted by paitoon
    Helle
    I have problem about .htaccess in my site. My purpose is i want to protect a folder name's IMAGES in my site then i put .htaccess into that folder. But instead of the IMAGES folder will be protected but i could not open my site at all.seems like it not only protect the IMAGES folder but it protects to open my site also.
    what should i do ? and what is the actually syntext to do this?
    I use this systext;

    AuthUserFile /share/isp/plusnet/www/uu/username/htdocs/directory/.htpasswd
    AuthGroupFile /dev/null
    AuthName EnterPassword
    AuthType Basic

    require valid-user


    thank you so much for the further help
    Alex

    You should ask server related questions in the appropriate server forum. This is also the type of question well suited to using a search engine to find tutorials:

    google: htaccess+tutori al

    Comment

    Working...