.htpasswd protect a website exept one directory?

Discussion in 'Server Operation' started by edge, Jul 12, 2009.

  1. edge

    edge Active Member Moderator

    Is it possible to .htaccess / .htpasswd protect a website exept one directory of it?

    Example:
    www.domain.tld is password protected, but www.domain.tld/demo is not.
     
  2. TheRudy

    TheRudy Member

    Into demo folder put .htaccess file that contains:

    Code:
    allow from all
    satisfy any
     

Share This Page