Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
I want to create a webisite like www.customer1.appsglobal.com/login.aspx using asp.net.
Here customer1 is changed based on different customers. But remaining the url should be same.
For this i have choosen IIS URL-Rewrite concept.


We have a domain is www.appsglobal.com. But using this we can create url's like
www.customer1.appsglobal.com/login.aspx[^]
www.customer2.appsglobal.com/login.aspx[^]
www.customer3.appsglobal.com/login.aspx[^]

so please help me to do like this.

Thanks in Advance
Posted

1 solution

If the only thing you really need is for the URL to be different you can just bind the domains to the same site in IIS. Now keep in mind that everything else must remain the same. If you want to use a different CSS, images, etc. you will have look at building support for multiple sites into your app.

First thing you need to understand how bindings on IIS work. View that http://blogs.technet.com/b/chrad/archive/2010/01/24/understanding-iis-bindings-websites-virtual-directories-and-lastly-application-pools.aspx[^]

Once you have that you can deploy you app to your server. After you setup the web site under IIS you just apply each of URLS you listed about. So every www.customerx would point to the same IIS site.
 
Share this answer
 
v3
Comments
_Satya_ 24-Feb-14 8:14am    
Sorry AnvilRanger. I did not get you. If you don't mind can you explain it briefly? Please post any URL's regarding this. So that i can understand it in better way. Thanks
AnvilRanger 24-Feb-14 9:25am    
Look at the link in the solution. You need to understand IIS bindings.

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