Bosco
04-21-2010, 03:15 PM
I'm having trouble accessing a subdomain. I purchased the unlimited subdomains and created a simple web app project for the root folder (softingenuity.com). I created a folder named bma and published another simple web app that just displays a label stating where I am.
softingenui is my root folder.
softingenuity.com is my domain.
I used the following code in my default.cs file:
protected void Page_Load(object sender, EventArgs e)
{
string subDomain = "bma";
string subDomainUri = @"/softingenui/Default.aspx";
if (Request.ServerVariables["SERVER_NAME"].ToLower().Contains(subDomain))
Response.Redirect(subDomainUri);
}
When I type in softingenuity.com I get the page I expected but when I type in bma.softingenuity.com, I get a page not found error.
any help would be appreciated.
softingenui is my root folder.
softingenuity.com is my domain.
I used the following code in my default.cs file:
protected void Page_Load(object sender, EventArgs e)
{
string subDomain = "bma";
string subDomainUri = @"/softingenui/Default.aspx";
if (Request.ServerVariables["SERVER_NAME"].ToLower().Contains(subDomain))
Response.Redirect(subDomainUri);
}
When I type in softingenuity.com I get the page I expected but when I type in bma.softingenuity.com, I get a page not found error.
any help would be appreciated.