Welcome to WebmasterWorld Guest from 54.196.214.35

Forum Moderators: ocean10000

Message Too Old, No Replies

Redirect of domains with and without www - IIS

     
12:02 pm on Oct 7, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 6, 2003
posts:49
votes: 0


Our web site is on an IIS server and I want to do a redirect of domain.com to www.domain.com so that the visitors browser will always show www.domain.com and not domain.com. I have read online information that this is possible and have also seen instructions for doing so in Internet Services Manager.

I asked my web host to setup the redirect and they came back with:

"Our system uses ip based virtualhosting. What this means is that each seperate website configuration has it's own ip address assigned to it.

Therefore when someone goes to domain.com versus www.domain.com since they have the same ip address they goto the same site.

For us to setup a url redirection as requested we would have to assign domain.com to a seperate ip address, setup a new configuration for that webiste and then have that new website configuration redirect to www.domain.com."

Can anybody give me some insight on this?

12:06 pm on Oct 7, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 25, 2002
posts:872
votes: 0


If you're running something like ASP on the site you can just check the HTTP_HOST header that the browser issues via Request.ServerVariables, and if it's not in a set list then issue a redirect to the domain you actually want them to go to.

- Tony

12:06 pm on Oct 7, 2003 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 27, 2001
posts:12166
votes: 51


It sounds like they are not familiar with how to set this up without using another IP. You might want to direct them here...

Redirect a domain such as example.com to www.example.com [xoc.net]

1:56 pm on Oct 7, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 6, 2003
posts:49
votes: 0


PageOne,

Actually I had provided them the same link you mentioned. After which they came back to me with the reply in my original post.

5:00 am on Oct 8, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 12, 2003
posts:772
votes: 0



The link given to you by pageoneresults should work
flawlessly.

Your host is correct in that they need to setup
an additional site, but that is it, other than
the remaining directions from the linked article.

They do not need to give you an additional ip, or
change your dns.

Guess you need to have another try at them while
speaking very, very slowly.

++++

4:48 pm on Oct 8, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 6, 2003
posts:49
votes: 0


My understanding is that both www and non-www were already setup on the IIS server. You can enter either www.domain.com or domain.com in a browser and both work exactly the same(the only difference being the lack of "www").

What my provider seems to be indicating is that there is a difference in how their servers/IP addresses are configured versus the configuration of the server setup on the example page.

8:50 pm on Oct 8, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 12, 2003
posts:772
votes: 0



You are correct, the dns resolution for your
domain will work correctly, and to the same
web site, if either the site is set up with
no host headers, or both host headers.

Since they use a dedicated ip for you,
they are probably using no host headers.

What the tutorial is suggesting is that
a second site be set up to implement
the redirect.

What I am further suggesting is that the
second site can use the same ip. But,
have a host header of example.com, which
then redirects to www.example.com.

The work involved for your host is no
more than setting up a second blank
site pointed at your original content
with a redirect.

They are just not getting it.

++++