OT: Apache .htaccess question
Ashley M. Kirchner
ashley at pcraft.com
Mon Nov 29 17:57:56 UTC 2004
Looking for some gurus here. I have the following snippet in my
.htaccess file:
SetEnvIfNoCase Remote_Host "some.domain.com" ref_ok=1
<FilesMatch "\.(gif|jpe?g|png|css|inc|GIF|JPE?G|PNG|CSS|INC|js)">
Order allow,deny
Allow from env=ref_ok
</FilesMatch>
...which effectively prevents anyone from remote linking to any of
those files anywhere on my web site (including those in sub-directories)
except for 'some.domain.com'. However, I want to _exclude_ a directory
from that blanket matching:
$web-soot/.htaccess
$web-root/thx/ <-- I want to exclude this directory and
everything else that may be below it.
Any ideas?
--
W | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley at pcraft.com> . 303.442.6410 x130
IT Director / SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
More information about the users
mailing list