RewriteCond comparing two variables in Apache htaccess
问题 I would like to have a rewritecond that gets true if two variables HTTP_ORIGIN and HTTP_HOST are equals. I tried RewriteCond %{HTTP:Origin} ^http://%{HTTP_HOST}(/|$) But despite Netbeans syntactic color, it appears that Apache is not replacing %{HTTP_HOST} by its value. I guessed it because RewriteCond %{HTTP:Origin} ^http://cnfr005554(/|$) RewriteCond %{HTTP_HOST} =cnfr005554 Works. So how can I test that the two variables %{HTTP:Origin} and %{HTTP_HOST} are equals? (and yes, it's for