PDA

View Full Version : Subdomains problem


rameshtiwary
08-08-2006, 01:44 AM
I am developing an application with facility of sunbdomain creation

like (user.domainname.com) . Will dicountasp provides this facilityand how it is posiible ?

please help meregarding this

Eric
08-08-2006, 02:32 AM
Yes, you will need to add the unlimited subdomain addon. You can order this addon via the control panel addon manager.

Eric
DiscountASP.NET
http://www.DiscountASP.NET

rameshtiwary
08-10-2006, 03:56 AM
Thanks :) for Your Support .

I am creating an application like www.textamerica.com (http://www.textamerica.com)

when any user (say Ramesh )is register here they willprovide him subdomain like ramesh.textamerica.com

If You have any idea how it is possible in ASP.NET with URLrewrite technique please help me :(

Post Edited (Ramesh K Tiwary) : 8/10/2006 11:25:56 AM GMT

JerSchneid
08-10-2006, 08:33 AM
DASP's unlimited subdomain feature actually works really well for what you want to do. The subdomain feature will just send all traffic to the root file. For example, if somone hits user1.yourdomain.com/Test.aspx and user2.yourdomain.com/Test.aspx, both requests will get handled by the root Test.aspx file.

I made a function to figure out which subdomain is being requested, then I can customize the content accordingly.

[quote]
staticprivatestringGetSubdomain()
{
//Getthehostnamebeingrequested
stringdomain=HttpContext.Current.Request.ServerVar iables['SERVER_NAME'].ToLower();

//Removeawww.ifitexists
domain=domain.Replace('www.','');

//Grabeverythingbeforethefirstperiod
intfirstDot=domain.IndexOf('.');

if(firstDot<0)
returnnull;

stringsubDomain=domain.Substring(0,firstDot);

//Ifthefirstdomainwefindisourrootdomain,thennosubdom ainwasused
if(subDomain=='mydomain')
returnnull;

returnsubDomain;
}
</CODE>

JerSchneid
08-11-2006, 01:32 AM
Hm... it sounds like it might be a support ticket issue? Is the subdomain feature already activated?

rameshtiwary
08-11-2006, 02:17 AM
Yes subdomain facility already activated . Now whats the problem ?
please guide me how to solve this problem and further steps

rameshtiwary
08-11-2006, 06:57 AM
I am register rewardscentral.us at DASP with facility of unlimited subdomains addon.

but when i write ramesh.rewardscentral.us in url it is not pointing to rewardscentral.us :(

Help me ...http://community.discountasp.net/emoticons/confused.gif

joelnet
08-12-2006, 02:18 AM
both domains are bringing up the same "welcome" page.


Joel Thoms
DiscountASP.NET
http://www.DiscountASP.NET