I think you're confusing yourself more :)

A domain name is just that - a name e.g. 
www.yourcompany.com<http://www.yourcompany.com>. All the DNS does is resolve 
that name to an IP address

A website is a logical collection of resources (web pages, images etc). It can 
be accessed by IP address, domain name etc.

Now, I'm a bit confused when you write: I have been trying to create a rule to 
redirect a subdomain name to a web page under the main domain.

You don't redirect "domain names" - a domain name points to an IP address. If 
you want it to point someone else, just update the DNS server. A domain name 
doesn't point to a webpage - it points to an IP address.

Now, what I think you want to do is:
Users who enter www.google.com<http://www.google.com> in their browser get a 
webpage from c:\inetpub\wwwroot
Users who enter trial.google.com in their browser get a webpage from 
c:\inetpub\wwwroot\test
(i.e. test is a folder that, coincidently, is located under the root of the 
first website, but is also the root of the second website).

If that's the case, just follow the steps I posted immediately below (create 
two websites)

If you actually want to do a redirect - that means that people are actually 
asking for http://trial.google.com in their browser, but the server tells them 
to make another request for http://google.com/test - is this what you want to 
happen?

Cheers
Ken


From: Daniele Bartoli [mailto:[email protected]]
Sent: Friday, 10 May 2013 3:12 AM
To: NT System Admin Issues
Subject: Re: IIS W2KR2 Question

I seemed to have confused matters.  Thanks for your patience.  Let me try to 
explain this differently with the correct wording.

I have been trying to create a rule to redirect a subdomain name to a web page 
under the main domain.

For example, I want http://trial.google.com to redirect to 
http://google.com/test

I am thinking that the URL Rewrite feature in IIS could accomplish this.  
However I am not sure how to write the rule?  Also would the rule go on the 
server or the site in IIS?

Or is there another option?



On Wed, May 8, 2013 at 5:47 PM, Ken Schaefer 
<[email protected]<mailto:[email protected]>> wrote:
Easiest way is to:
a) create a second website.
b) Configure the second website with the host header 
"trial.google.com<http://trial.google.com>"
c) Set the home directory of the second website to be the "test" folder
But, what you are asking for now is not what you were asking for before...

Cheers
Ken

From: Daniele Bartoli 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Thursday, 9 May 2013 9:47 AM

To: NT System Admin Issues
Subject: Re: IIS W2KR2 Question

There is one site in IIS.  So all google.com<http://google.com> traffic goes to 
that one site (i.e. Default Web Site).
Within that site there is a page (google.com/test<http://google.com/test>) that 
they are trying to associate to the other domain name 
(trial.google.com<http://trial.google.com>)
How do I do that?
On Wed, May 8, 2013 at 4:19 PM, Kurt Buff 
<[email protected]<mailto:[email protected]>> wrote:
Err,  my reply should read:

"This is easier if google.com<http://google.com> and 
trial.google.com<http://trial.google.com> are actually
different sites on separate IP addresses on the IIS server..."

Kurt

On Wed, May 8, 2013 at 4:17 PM, Kurt Buff 
<[email protected]<mailto:[email protected]>> wrote:
> On Wed, May 8, 2013 at 3:13 PM, Daniele 
> <[email protected]<mailto:[email protected]>> wrote:
>> Got an IIS question that I am hoping someone can help with.
>>
>> I am using the google domain name fictiously to illustrate the example.
>>
>> So I have my web server, and it has a web page at 
>> google.com<http://google.com>.  I have an A record that points 
>> google.com<http://google.com> to an IP.
>>
>> Then I have anoher web page on that same server that is at 
>> trial.google.com/test<http://trial.google.com/test>.  I have an A record 
>> that points trial.google.com<http://trial.google.com> to the same IP as 
>> google.com<http://google.com>.
>>
>> If I try to manually go to 
>> trial.google.com/test<http://trial.google.com/test>, all works just fine.
>>
>> My question is, how do I redirect traffic so that the 
>> trial.google.com<http://trial.google.com> automatically goes to 
>> trial.google.com/test<http://trial.google.com/test>?
>>
>> Meanwhile, I don't want to impact what is already working, 
>> google.com<http://google.com>
>
> this is easier if google.com<http://google.com> and 
> trial.google.com<http://trial.google.com> are actually
> separate sites on the IIS server...
>
> In that case, just make the test page your default for 
> trial.google.com<http://trial.google.com>
>
> But, in this case, from dim memory, you'll need to enable host
> headers, and you'll still want to make the test page as your default
> page for trial.google.com<http://trial.google.com>
>
> See this article:
> http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx
>
> Kurt

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to