Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wants to url routing like as subdomain.

For example my website is website.com so that now i wants to url rewriting like

client1.website.com,
client2.website.com,
client3.website.com,
clientN.website.com

In my website there are list of client whenever click on client my url like this

website.com/client.aspx?client=client1
website.com/client.aspx?client=client2
website.com/client.aspx?client=client3
website.com/client.aspx?client=clientN

Now i wants to url rewriting like as

client1.website.com
client2.website.com
client3.website.com
clientN.website.com

Also whenever once client is registered,After that client can directly open site
Posted

1 solution

have a look at this very good article and come back if you have any more questions..
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx[^]
 
Share this answer
 
Comments
anildiggiwal 17-Aug-12 3:45am    
thx for give responses to my questions ..
but this link is not my solution ...
i want to manage sub domain functionality with routing 4.0 not MVC..

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