Hi, i have got below rule that works fine with standart domain names like .net.com,.mobi but if domain name has 2 parts like co.uk it doesn't work.
How can i adjust it so it would work with .net,.com and .co.uk at same time?
<if header="HTTP_HOST" match="^(?:www\.)?([^.]+)\.([^.]+)\.([^.]+)$">
<set property="subdomain" value="$1"/>
<set property="domain" value="$2"/>
<set property="tld" value="$3"/>
<rewrite url="~/default.aspx" to="~/PageEngine.ashx?subdomain=${subdomain}&domain=${domain}.${tld}&defaultpage=yes" processing="stop"/>
</if>