Solved

Windows 2003 subdomain redirection

Posted on 2008-10-04
2
310 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
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now