Apache mod_rewrite: explain me %{HTTP_HOST} especially when using addon domains
%{HTTP_*}
evaluates to the HTTP header with the name given after the prefix shown. In HTTP 1.1, the host being accessed is given in the Host
header, so yes.
You pretty much guessed them all right! The last one would be;
main-domain.com