Solved

Windows 2003 subdomain redirection

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IIs Windows 2008 HTTPS no access 4 82
IIS Windows Server FTP 5 50
IIS 8 and certificate 8 44
Time server on domain 3 64
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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