overriding mod_access "require" directive
am 07.06.2007 12:12:08 von Pete SmithHi,
I want to make a whole website require authentication, so I have added this
simple .htaccess file i nthe root:
Authtype Basic
AuthUserFile /home/site/.htpasswd
require valid-user
This works fine. But i want to make the robots.txt file viewable to all, so
I don't want that particular file to be subject to the 'require' directive.
How can I do this? I thought of putting the require directive in a
filesmatch block but I could not see a way of specifying "if the file does
not match '/robots.txt' then do this" scenario.
Pete