Last post Dec 06, 2010 01:06 AM by reena_jainy2k1
Dec 04, 2010 01:29 AM|reena_jainy2k1|LINK
hello to all
there is some problem in url rewirte. for When i am using the page www.wise.com, its moving to index.aspx, because i have set the start up page as index.aspx. but if i give www.abc.wise.com or www.xyz.wise.com or www.abc.xyz.wise.com, then also it should
move to index.aspx. Its not somthing related to create subdomin. rather i want if any one give subdomain in url then also it should move to index.aspx. how to do this in asp.net i am using IIS 7 server.
Dec 04, 2010 06:46 AM|rtpHarry|LINK
The problem with this is setting up wildcard subdomains which is supported in Apache but not IIS, even the latest IIS7.
Anyway the technical term that you are looking for is "wildcard dns record":
You might be able to get this workout outside of IIS by setting it up on the DNS level. If you have full access to your DNS server then you might be able to get somewhere with this.
Oh I just remembered that when I had this problem before that there was one way to do it. If you set up the default website (ie leave the host header empty) then you can capture all of these other domains but the problem with this is it causes problems when
you host more than one site on your server. So if you setup the default server then everything that doesnt have a header will match INCLUDING subdom.client2.com and any other client on the server. So if somebody accidentally types wwww.client2.com they
are going to be taken to www.client1.com. To use this method you would need to get client 1 its own IP address so you can partition it away.
Dec 06, 2010 01:06 AM|reena_jainy2k1|LINK
many thank for reply, can you give me some more detail regarding this. I am using a shared server and having only one site to host on server. i am able to access the IIS 7 and able to do the setting in it. I want if any user type any subdomin url on server
should move on index page, because i have write the code on index to work accordingly. I was able to do this on dedicated server without doing any setting, but not able to do this on shared server. Have you any idea how to do this. yes might be you are right
its somthing related to wild card. have you any idea how to figure out this.