Solved

Windows 2003 subdomain redirection

Posted on 2008-10-04
2
326 Views
Last Modified: 2012-06-22
On a Windows 2003 server with IIS 6
When someone visits http://thiscouldbeanything.mydomain.com, I would like them to be redirected to http://mydomain.com/index.asp?id=thiscouldbeanything

I want to do this without having to setup subdomains, meaning what ever is used as a subdomain name this redirection would work. example: http://abc.mydomain.com would be redirected to http://mydomain.com/index.asp?id=abc

Can someone help me with this?
0
Comment
Question by:gosonic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
sstone55423 earned 500 total points
ID: 22642746
If you set up your DNS with an @ record pointing to your server at mydomain.com, then it acts as a wildcard, and anything at your domain (that is not actually listed there) will go to your default.
You then need to modify the default.asp page on the default server to redirect.
 
With the default.asp, look for "server_name" and then redirect to http://mydomain.com/index.asp?id=server_name
Dim SrvName
SrvName = Split(Request.ServerVariables("server_name"), ".")  
 
0
 

Author Closing Comment

by:gosonic
ID: 31503113
thanks
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question