| David Efflandt 2005-03-13, 2:46 am |
| On Sat, 12 Mar 2005 21:55:32 GMT, dave <dmehler26@woh.rr.com> wrote:
> Hello,
> I am going to be revising a site. I'm going to have an url like:
> http://www.example.com/test
> under test is the new site style and content. I do not want this area to be
> viewed by the public or by bots until it goes from the test area live. I
> believe apache can do this with htaccess but the specific syntax is escaping
> me.
> Any help appreciated.
> Thanks.
> Dave.
See apache docs for mod_access to limit access by IP or domain.
See "Require" directive and related links about password access. Note
that to do this in .htaccess requires AuthConfig (or All) in AllowOverride
of main config. AuthGroupFile is not required if not using groups.
Authentication applied in .htaccess will apply to any subdirectories under
it unless changed with some other .htaccess there.
|