subdomain to subdirectory

Discussion in 'Getting started' started by DaniAlonso, Apr 18, 2011.

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

    Joseph Jun DiscountASP.NET Staff

    Can you please post the code that you're using to redirect the sub-domain name request to the sub-directory so we can review?
     
  2. I tried everything, I even remotely connected to IIS, but have received nothing. I thought the solution may be in the web.config file, as in Apache the solution may be in the file .htaccess...

    index.asp

    Code:
    <%
     If InStr( UCase(Request.ServerVariables("SERVER_NAME")),  UCase("u.mydomain.com") ) > 0 Then
             Response.Redirect("/u")
     ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("blogs.mydomain.com") ) > 0 Then
             Response.Redirect("/blogs")
     ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("step.mydomain.com") ) > 0 Then
             Response.Redirect("/step")
     End If
     %>
    
     
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