syntax for .htaccess files
Posted by: patricking
Posted on: 2005-02-05 14:32:00
hi folks-
in dealing with referrer spam, i'm trying to optimize my .htaccess file. couldn't find an answer to this anywhere.
to deal with subdomains, can i use this syntax:
RewriteCond %{HTTP_REFERER} ^http://(www.)?*.domain.com*$ [NC,OR]
or do i need to have the entire subdomain listed, like so:
RewriteCond %{HTTP_REFERER} ^http://(www.)?subdomain.domain.com*$ [NC,OR]
couldn't find this anywhere (weirdly). thanks!
yours,
/pk