IIS Server - URL Re-direction

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > December 2005 > URL Re-direction





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author URL Re-direction
insidematrix@gmail.com

2005-12-26, 7:48 am

I have a real ip "xx.xx.xx.xx"

I have 3 websites - all are pointing to xx.xx.xx.xx

like. www.a.com is pointing to xx.xx.xx.xx
www.b.com is pointing to xx.xx.xx.xx
www.c.com is pointing to xx.xx.xx.xx

xx.xx.xx.xx is hosting a website on IIS 6.0

so, when the user types www.a.com or www.b.com or www.c.com, they see
the same website which is hosted on xx.xx.xx.xx

now, i want to redirect www.b.com to xx.xx.xx.xx/b/
likeise, www.c.com to xx.xx.xx.xx/c/

the URL re-direction will work according to the host name, if the user
is typing www.b.com, then xx.xx.xx.xx/b/ should be shown

if the user is typing www.c.com, then xx.xx.xx.xx/c/ should be shown.

if the user is typing www.a.com, then xx.xx.xx.xx should be shown.


how shall i do this is IIS 6.0.


thanks in advance.

best regards.

Kristofer Gafvert

2005-12-26, 7:48 am

Hello,

In IIS, create three websites and redirect two websites to whatever you
want. You can create a redirection on the "Home Directory" tab in the
website properties.

Using an ISAPI filter such as ISAPI Rewrite[1] is also an option. The
disadvantage is however that it requires a third-party product that may
cost money.

[1] www.isapirewrite.com


--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


insidematrix@gmail.com wrote:

>I have a real ip "xx.xx.xx.xx"
>
>I have 3 websites - all are pointing to xx.xx.xx.xx
>
>like. www.a.com is pointing to xx.xx.xx.xx
>www.b.com is pointing to xx.xx.xx.xx
>www.c.com is pointing to xx.xx.xx.xx
>
>xx.xx.xx.xx is hosting a website on IIS 6.0
>
>so, when the user types www.a.com or www.b.com or www.c.com, they see
>the same website which is hosted on xx.xx.xx.xx
>
>now, i want to redirect www.b.com to xx.xx.xx.xx/b/
>likeise, www.c.com to xx.xx.xx.xx/c/
>
>the URL re-direction will work according to the host name, if the user
>is typing www.b.com, then xx.xx.xx.xx/b/ should be shown
>
>if the user is typing www.c.com, then xx.xx.xx.xx/c/ should be shown.
>
>if the user is typing www.a.com, then xx.xx.xx.xx should be shown.
>
>
>how shall i do this is IIS 6.0.
>
>
>thanks in advance.
>
>best regards.

insidematrix@gmail.com

2005-12-26, 7:48 am

Hi,

Thanks for your reply.

I have only one real ip.

best regards

Kristofer Gafvert

2005-12-26, 7:48 am

Why do you want to have the IP shown? Isn't it better that people use the
domain name, since the IP may change (and it is easier to remember a
domain name) in the future.


--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


insidematrix@gmail.com wrote:

>Hi,
>
>Thanks for your reply.
>
>I have only one real ip.
>
>best regards

Kristofer Gafvert

2005-12-26, 7:48 am

>I have only one real ip.

Okay? Do you mean by this statement that you cannot use the given
solution? If so, you are wrong. You can have three websites on one machine
with only one IP. You can use host headers to distinguish the websites.


--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


insidematrix@gmail.com wrote:

>Hi,
>
>Thanks for your reply.
>
>I have only one real ip.
>
>best regards

insidematrix@gmail.com

2005-12-26, 7:48 am

i have one-web site , one ip address on a single machines,
on register.com, i have pointed all the three websites to this single
ip address,
now in my machine, i want to configure in such a way that when a user
types www.a.com or www.b.com, www.c.com, it should recognize the url
and forward accordingly.

if you can provide me some example, i would be really grateful to you.

Thanks for your time and effort.

Best Regards.

Kristofer Gafvert

2005-12-26, 5:55 pm

I already explained it to you.

Create two more websites in IIS (assuming that you already have one), one
for www.b.com and one for www.c.com. Use host headers to distinguish
between the websites.

Open properties for each website, and click on the Home Directory tab.
Change to "A redirection to a URL", and type in the URL you would like
this website to be redirected to.


--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


insidematrix@gmail.com wrote:

>i have one-web site , one ip address on a single machines,
>on register.com, i have pointed all the three websites to this single
>ip address,
>now in my machine, i want to configure in such a way that when a user
>types www.a.com or www.b.com, www.c.com, it should recognize the url
>and forward accordingly.
>
>if you can provide me some example, i would be really grateful to you.
>
>Thanks for your time and effort.
>
>Best Regards.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com