1

I am wondering what the correct way to redirect m.mydomain.com to www.mydomain.com/mobile in IIS6.

I have two ways to do it, but I don’t know which is right. First, I can create a new website called "mobile" listening on another IP and have it "redirect to another URL". But that will use up another of my limited IP addresses.

Second, I could try to do the same thing with Host Headers. If I do that, it won’t use up another IP, but could it cause other issues? I am much more familiar with Apache than IIS. If I set up two sites on the same IP using Host Headers, will it be that same config as Using two different IPs?

1 Answer 1

0

Just create a new web site using the same IP address assigning it the host header

m.mydomain.com 

and redirect it to www.mydomain.com/mobile

I don't see the problem here. Actually, you can have literally hundreds of web sites for the same IP address on the same IIS with different host headers (I have done it on severals servers, all IIS versions).

2
  • Do I need to add a Host Header to the default, original website? I would like any requests to just the IP to default to that site. Commented Feb 21, 2011 at 19:35
  • You could add the host header "www.mydomain.com" to the main site, if you haven't done it. I guess you have a blank host header on that site. This way it will also accept IP address requests (e.g. 12.34.56.78) - a blank host header means: accept all unassigned (on other web sites) host headers for the IP/port combination Commented Feb 21, 2011 at 19:52

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.