Click here to Skip to main content
15,888,908 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Hosted the asp.net website on windows server which does not support the wild card entry(*.) for the subdomain creation.
I have to redirect the url : http://subdomain.domainName.org to http://domainName.org

how can I achieve this programatically?
Posted

1 solution

Use routing in your global.asax file to change route from requested "
http://subdomain.domainName.org
" to "
http://domainName.org
"
 
Share this answer
 

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