Click here to Skip to main content
15,037,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
i have a web site with some sub domain for rewriting i use this code in web confic:
<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="~/userPage.aspx?pagename=${subdomain}&defaultpage=yes" processing="stop"/> <!--<rewrite url="~/Default.aspx" to="~/Default.aspx" processing="stop"/>--> </if>

when i test website with this address everything is good:

But when i want to test this address:

doenst work rewrite
Updated 4-Oct-13 6:35am
Uthman Rahimi 5-May-14 15:26pm
i need your help.please elp me

1 solution

please help me??????????????????????????????

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900