General discussion

Locked

IIS 5.0 question

By BertusTech ·
We have two main domains that are routed to the same web server and to same IP. My boss wants the default URL to always appear the same, i.e. when a user types www.xxx.com, he wants the URL in the address window to be automatically rewritten as www.yyy.com, instead. Both domains of course are valid and point to same default page. Can't figure out how to do that, just yet. I'll appreciate anyone's help on this one.
Thanks!
Robert

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

IIS 5.0 question

by Joseph Moore In reply to IIS 5.0 question

Ok, so both IPs are hitting your firewall and being NATted to the same internal IP of your web server. That is the scenario, roughly, right?
Now, to get www.xxx.com CHANGED in the browser window of a user to www.yyy.com, then the user will have to hit SOMETHING to get that to happen.
You can't change the URL in a user browser window using modified DNS A records or such.
You need to have the user hit a resource on your network that REDIRECTS them to www.yyy.com.

So, here is what I suggest.Change the NATting rules on your firewall, so that www.xxx.com comes to ANOTHER IP address on your web server. This 2nd IP address hosts its own single-page web site that instantly redirects the user to www.yyy.com.

So, what will happen is a user goes to www.xxx.com. That request will hit the xxx.com web page on the 2nd IP on your web server. The page then redirects the user to www.yyy.com.

For the user, they will type in www.xxx.com, then after a moment they will see the address changein their browser to www.yyy.com, and the web site at www.yyy.com will start to load.

This is usually how it is done, AFAIK. Maybe you could do this with Host Headers, but you would still need a 2nd IP address internal and 2nd web page.

hope this helps

Collapse -

IIS 5.0 question

by BertusTech In reply to IIS 5.0 question

Thanks for detailed answer. I need to clarify our scenario, though. This particular dept is behind a firewall configured in transparent mode, no NAT implemented. We have 1 IP (web server) and two different addresses, www.xxx.com and www.yyy.com, access same web server, both addresses represent valid domains. So, the idea is to have, say, www.xxx.com to be the always-visible address in the browser's address window, even when a user types in www.yyy.com or clicks on a www.yyy.com link.
Yes, I don't think host headers can help in this one, either. I guess there's some scripting involved, I just wanted to see if anyone out there has already dealt with this task and has a quick solution for me. Thanks again!
Robert

Collapse -

IIS 5.0 question

by BertusTech In reply to IIS 5.0 question

This question was closed by the author

Back to Windows Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums