httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederik Vanderstraeten <>
Subject [users@httpd] .htaccess: denying access using advanced rules
Date Sun, 14 Jan 2007 16:37:57 GMT

I'm new to .htaccess. I'd like to do the following:
I'd like to disallow all requests for all files and subdirectories in a
certain directory, except for the index file ( for that one
directory (not for the subdirectories). I'd also prefer if the
file could still be accessed as the directory index.
Also, that file should only be accessible if HTTP request header
X-Client has a value of MW.
I don't understand how to accomplish this.

Frederik Vanderstraeten

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message