I'm trying to match a referer to a host name in my .htaccess and stumbled upon the following.
The condition reads:
RewriteCond %{HTTP_REFERER} ^https://%{HTTP_HOST}.*$
But this never matches, and the log file for mod_rewrite states this:
RewriteCond: input='https://mysite.com/test.htm' pattern='^https://%{HTTP_HOST}.*$' => not-matched
Why is the HTTP_HOST variable not getting expanded in this condition?