how to redirect all the traffic on three domains to one domain in IIS?

I had problems with google ranking because I had some common content on three websites

www.practicelifeintheuktest.co.uk
www.lifeintheuktestfreehandbook.co.uk
www.lifeintheuktest.co

I have merged the content of all three and want to keep only one website.  I need to redirect all the traffic on all the links on existing three websites to point on one website www.lifeintheuktest.co

how can i do that in IIS 7.5? I  know there is a redirect feature in IIS but I don't understand how to use that to resolve this issue
mmalik15Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

edster9999Commented:
In the IIS manager for the other sites (the ones you want to redirect) :

Click on local computer
Right-click the Web site you want to redirect
Click Properties.
Click on Home Directory
Under The content for this source should come from, click A redirection to a URL.
In the Redirect to box, type the URL of the site you want to direct to.
Select the The exact URL entered above check box to prevent the Web server from appending the original file name to the destination URL.
0
khairilCommented:
Hi,

Thus 3 website sat on the same server (IIS)?

If all web sites have their own server (IIS), you can just add entry in HTTP Redirect from the root of the web server you wish your client to REDIRECT FROM to destination web server.

You can do the same if source web in same IIS (which running on different IP or different port - yup it can still happen if you NAT/PAT it) but you have to select the web you wish do redirect from and set the destination to newly merged site.

You may like to set the redirection code to be permanent.

Other way to do is to make DNS CNAME entry to point to the web server to wish to be default. However, this will not change the URL name, which make it pointless for Google rank but it does help you if you planned to shutdown the old web server.

My 2 cent.
0
mmalik15Author Commented:
I had all the three websites on the same godaddy shared hosting webserver but I've moved them all to one VPS server which has IIS 7.5
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

mmalik15Author Commented:
Please see the attached screenshots of the redirect settings i have on IIS and the error i am getting
IIS-Http-Redirect.png
web-page-error.png
0
BardobraveCommented:
I can be mistaken... but... aren't you redirecting lifeintheuktest.co to itself?

This could explain why the redirection loop.
0
mmalik15Author Commented:
thanks for the comment but I don't understand how to redirect website using http redirect. As I need to redirect all the links from this website www.practicelifeintheuktest.co.uk to www.lifeintheuktest.co

 All I am doing is selecting the website www.practicelifeintheuktest.co.uk in IIS and click on http redirects feature. In HTTP Redirect window I select to top option which is Redirect requests to this destination: and in the text box I am entering the name www.lifeintheuktest.co 

which for some reasons is going in some loop.
0
mmalik15Author Commented:
Any ideas what i am doing wrong? thanks
0
BardobraveCommented:
In the image you provided the site selected is lifeintheuktest, not practicelifeintheuktest.
0
mmalik15Author Commented:
I have changed the sitenames please see it now in the attached image
IIS-2.png
0
edster9999Commented:
A redirect loop happens when you redirect a website to itself (so it loops and lopps and....)

It should be like this :

Site1 -> siteX
Site2 -> SiteX
SiteX ->

So you redirect other sites to a single site but you DO NOT redirect that one anywhere.  it just serves the pages.

Your destination address should really have http:// in front of it.
From memory it works without but it would be better practice to add it (see the example on your screenshot)

From the other part of the question I am assuming you are asking if other links can be transferred.

Example
site1 -> SiteX
Site1/next.htm -> SiteX/next.htm
Site1/about.htm -> SiteX/about.htm
etc

This is the top tick box.  If it is ticked then all pages will take you to the page you specify (normally the index page).  if you do not tick it then you get the path on the end as in my examples just above.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.