redirect http to www

  • Thread starter Thread starter To Old To . . .
  • Start date Start date
T

To Old To . . .

Guest
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.
 
Re: redirect http to www

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@discussions.microsoft.com> wrote in message
news:01F668C3-E96B-41A1-BABF-6AB385411834@microsoft.com...
>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.
 
Re: redirect http to www

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@discussions.microsoft.com> wrote in message
> news:01F668C3-E96B-41A1-BABF-6AB385411834@microsoft.com...
> >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.

>
>
>
 
Re: redirect http to www

Did you look at the host header I mentioned?

"To Old To . . ." <ToOldTo@discussions.microsoft.com> wrote in message
news:850C79F8-F548-4BD5-95C8-64F974742097@microsoft.com...
>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@discussions.microsoft.com> wrote in message
>> news:01F668C3-E96B-41A1-BABF-6AB385411834@microsoft.com...
>> >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.

>>
>>
>>
 
RE: redirect http to www

Which site is it internal being hosted by your IIS? or external? sounds like
a DNS record needs to be added or as Anthony said a Host header....

PM back and will be able to help

"To Old To . . ." wrote:

> 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.
 
Re: redirect http to www

Not sure what you mean Host header.


"Anthony" wrote:

> Did you look at the host header I mentioned?
>
> "To Old To . . ." <ToOldTo@discussions.microsoft.com> wrote in message
> news:850C79F8-F548-4BD5-95C8-64F974742097@microsoft.com...
> >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@discussions.microsoft.com> wrote in message
> >> news:01F668C3-E96B-41A1-BABF-6AB385411834@microsoft.com...
> >> >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.
> >>
> >>
> >>

>
>
>
 
RE: redirect http to www

This is internally hosted. What do I add to the dns?
Than you for your replies

"johnboy007" wrote:

> Which site is it internal being hosted by your IIS? or external? sounds like
> a DNS record needs to be added or as Anthony said a Host header....
>
> PM back and will be able to help
>
> "To Old To . . ." wrote:
>
> > 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.
 
Re: redirect http to www

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@discussions.microsoft.com> wrote in message
news:A7A10707-0C9B-4FA5-82DA-EA8402B04627@microsoft.com...
> Not sure what you mean Host header.
>
>
> "Anthony" wrote:
>
>> Did you look at the host header I mentioned?
>>
>> "To Old To . . ." <ToOldTo@discussions.microsoft.com> wrote in message
>> news:850C79F8-F548-4BD5-95C8-64F974742097@microsoft.com...
>> >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@discussions.microsoft.com> wrote in message
>> >> news:01F668C3-E96B-41A1-BABF-6AB385411834@microsoft.com...
>> >> >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.
>> >>
>> >>
>> >>

>>
>>
>>
 
Re: redirect http to www

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@discussions.microsoft.com> wrote in message
> news:A7A10707-0C9B-4FA5-82DA-EA8402B04627@microsoft.com...
> > Not sure what you mean Host header.
> >
> >
> > "Anthony" wrote:
> >
> >> Did you look at the host header I mentioned?
> >>
> >> "To Old To . . ." <ToOldTo@discussions.microsoft.com> wrote in message
> >> news:850C79F8-F548-4BD5-95C8-64F974742097@microsoft.com...
> >> >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@discussions.microsoft.com> wrote in message
> >> >> news:01F668C3-E96B-41A1-BABF-6AB385411834@microsoft.com...
> >> >> >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.
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>
 
RE: redirect http to www

Well adding the host header, broke the website as unreachable http400 error.
Also broke all the internal links.
You mentioned DNS Record? What record would I need to add. Host(A)?

Thank you for your reply.

"johnboy007" wrote:

> Which site is it internal being hosted by your IIS? or external? sounds like
> a DNS record needs to be added or as Anthony said a Host header....
>
> PM back and will be able to help
>
> "To Old To . . ." wrote:
>
> > 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.
 
Re: redirect http to www

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@discussions.microsoft.com> wrote in message
news:C1360604-75DE-4A06-8A75-5488F1B8C1C7@microsoft.com...
> 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@discussions.microsoft.com> wrote in message
>> news:A7A10707-0C9B-4FA5-82DA-EA8402B04627@microsoft.com...
>> > Not sure what you mean Host header.
>> >
>> >
>> > "Anthony" wrote:
>> >
>> >> Did you look at the host header I mentioned?
>> >>
>> >> "To Old To . . ." <ToOldTo@discussions.microsoft.com> wrote in message
>> >> news:850C79F8-F548-4BD5-95C8-64F974742097@microsoft.com...
>> >> >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@discussions.microsoft.com> wrote in
>> >> >> message
>> >> >> news:01F668C3-E96B-41A1-BABF-6AB385411834@microsoft.com...
>> >> >> >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.
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>

>>
>>
>>
 
RE: redirect http to www

Hi To OLD To :)

Try the following article: http://support.microsoft.com/kb/315982

You want the end bit that says: How to Create a DNS Entry for the Web Server

Hope it helps if not (or if it works) PM here.


John

"johnboy007" wrote:

> Which site is it internal being hosted by your IIS? or external? sounds like
> a DNS record needs to be added or as Anthony said a Host header....
>
> PM back and will be able to help
>
> "To Old To . . ." wrote:
>
> > 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.
 
Back
Top