Re: redirect http to www
- From: "Anthony" <anthony.spam@xxxxxxxxxxxxxx>
- Date: Wed, 8 Aug 2007 14:54:00 +0100
You need these things to work:
1) Your DNS needs to resolve both domain.com and www.domain.com. If you want
them to go to the same place then you give them both the same address. For
example, you can say that host domain.com is 212.452.10.120. Then you can
say that www.domain.com is an alias for this, and web.domain.com is also an
alias. Or you can create them all as separate hosts, with the same address.
2) In IIS you just set up a website on that IP address. It will answer
anything coming in on that IP address, regardless of the names or aliases
used.
3) If you have two IIS sites, running on two different IP addresses, you can
redirect one to the other with the Redirection property I gave you before.
You would only need to do this if the DNS was set up with hosts having
different IP addresses.
3) In IIS, if you are trying to run more than one site on one IP address,
you need to use host headers. The header is contained in the request from
the client. When IIS sees the host header, it gives it to the correct site.
A site can have more than one host header. The site will no longer respond
to any request that does not contain its assigned host header(s), for
example it will not respond to http://domain (no .com) or http://locahost or
http://[IP_address]. I think you need to restart the site for it to start
working with the new headers.
As you can see, there are lots of possible combinations,
Anthony
http://www.airdesk.co.uk
"To Old To . . ." <ToOldTo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C1360604-75DE-4A06-8A75-5488F1B8C1C7@xxxxxxxxxxxxxxxx
OK, under Web site ID > advanced, I put in www.xxxxxx.com port 80, and
xxxxx.com port 80. no change.
Is this correct?
Thank you for a fast reponse
"Anthony" wrote:
In the website Properties, web site identification, Advanced, you can set
one or more host headers for the listen to respond to, for example
www.xxxx.com and xxxx.com
Or else if you have two sites on two different IP addresses you can
redirect
one to the other.
Anthony,
http://www.airdesk.co.uk
"To Old To . . ." <ToOldTo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A7A10707-0C9B-4FA5-82DA-EA8402B04627@xxxxxxxxxxxxxxxx
Not sure what you mean Host header.
"Anthony" wrote:
Did you look at the host header I mentioned?
"To Old To . . ." <ToOldTo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:850C79F8-F548-4BD5-95C8-64F974742097@xxxxxxxxxxxxxxxx
I can't use the redirect as it is already pointed to e:\dir. So is
there
anything else that I can do?
Thank you for your reply
"Anthony" wrote:
You can redirect in IIS by setting Properties, Home Directory, a
redirection
to a URL.
But it sounds as though what you want is to add xxxxx/com as a host
header
to the www.xxxxx.com site,
Anthony
http://www.airdesk.co.uk
"To Old To . . ." <ToOldTo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:01F668C3-E96B-41A1-BABF-6AB385411834@xxxxxxxxxxxxxxxx
I am not sure if this is the place, but when I type in xxxxxx.com
or
http://xxxxxx.com I can't get to the site. I have to type
www.xxxxxx.com.
I
moved my site from Unix to Windows. In Unix I can add a line to
the
.htaccess
file. How do I do this for IIS?
Thank you in advance.
.
- References:
- Re: redirect http to www
- From: Anthony
- Re: redirect http to www
- From: Anthony
- Re: redirect http to www
- From: Anthony
- Re: redirect http to www
- From: To Old To . . .
- Re: redirect http to www
- Prev by Date: Re: Redundant DC/fileserver
- Next by Date: Re: upgrade NT to 2003
- Previous by thread: Re: redirect http to www
- Next by thread: strange behaviour with user profile directory
- Index(es):
Relevant Pages
|
Loading