> Uhm, I forgot ? after the second group:
>
>
> RewriteCond %{HTTP_HOST} ^([^\:]*)(\:.*)?$
> RewriteRule .* - [E=CO_DOMAIN:%1]
>
> This should work for port 80 as well.
No, because in general HTTP_HOST can be IP address, host name or FQDN and it won't work for second case ;)
> Uhm, I forgot ? after the second group:
>
>
> RewriteCond %{HTTP_HOST} ^([^\:]*)(\:.*)?$
> RewriteRule .* - [E=CO_DOMAIN:%1]
>
> This should work for port 80 as well.
No, because in general HTTP_HOST can be IP address, host name or FQDN and it won't work for second case ;)