Incorrect url on sub domain configuration

Discussion in 'Domain names / DNS' started by shenging, Jan 4, 2012.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi , I have "Unlimited Subdomain Includes Unique IP" on discountasp

    I checked your configuration about subdomains: https://support.discountasp.net/KB/a369/how-to-redirect-a-subdomain-to-a-subdirectory.aspx

    I added some like this:

    If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("mySubdomainName.YourHostedDomainName.com") ) > 0 Then
    Response.Redirect("/myfolder")
    End If

    And the actual result is:
    request: mySubdomainName.YourHostedDomainName.com
    response: mySubdomainName.YourHostedDomainName.com/"foldername" and it's wrong to me, I don't need this "foldername" on url, just mySubdomainName.YourHostedDomainName.com as a new root site, I'm doing something wrong ? Thanks.
     
  2. If you'd like to remove the folder name, you'd be able to use the IIS Rewrite Module if you're on a IIS7 server.

    Are you on an IIS7 server?
     
  3. Yes I'm using IIS 7

    How I can Configure on IIS my subdomain request response like this: mySubdomainName.YourHostedDomainName.com/"WithOuthThisfoldername"

    Thanks
     
  4. martino

    martino DiscountASP.NET Staff

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page