Solved

Multiple Domains Pointing to same IP address in IIS

Posted on 2011-02-18
5
450 Views
Last Modified: 2012-06-27
Hello Experts,
my website is bulit in asp.net 2.0 and C# and hosted on a web server (IIS) with my hosting company.

The developer who set our site up might have made a mistake while setting up the site. the reason being, we have 3 domains name we own which are for example

mysite.com, mysite.net, mysiteltd.com

Now when the developer set the site up, he set it up in such way that all the 3 domains are pointing to the same IP address.

So basically what this did was i can broswe the same website with same content using any of the 3 domains names I mentioned before.

I was wondering if there is way to fix this, what i mean is is there way that all the 3 of them just go to mysite.com.

I thought of adding a redirect to mysite.net and mysiteltd.com but if I do that wont it result in a indefinte loop as all the 3 domains are pointing to the same IP address.

Please can someone advice because currently our one site is being indexed by GOOGLE, YAHOO and BING as 3 different sites with the same content

Thanks and appreciate it


0
Comment
Question by:niceoneishere
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
cmorffew earned 250 total points
ID: 34927934
If all three sites are the same site then you should have set up the DNS entries for the 2 "other" sites to point to the main site, not how your developer did it.

You will need to login to your DNS manager and configure the domain to be forwarded to the main domain.  e.g. have mysite.net and mysiteltd.com forwarded to mysite.com

You will no doubt have to check the header values of the 2 other sites in IIS and even turn them off.
0
 
LVL 13

Assisted Solution

by:Jesus Rodriguez
Jesus Rodriguez earned 250 total points
ID: 34927958
What you can do is in the other 2 domains add a page with the redirection to the mysite.com as the enter page for those domain and then every time that you enter on the mysiteit.com will be redirected to the mysite.com ( basically will change from one page to other without taking a loop)

For example
Mysite.com   MainPage-> Default.aspx
Mysite.net    MainPage->Redirect.html (create by you and doing a redirect to default.aspx)
mysiteltd.com   MainPage->Redirect.html (create by you and doing a redirect to default.aspx)
0
 
LVL 1

Author Comment

by:niceoneishere
ID: 34928049
Thanks for replying. I will have to check with the hosting company as the site is hosted on a shared server. I checked the DNS administration and I dont see the domain forward option

and K-designers, I can not do that because all the 3 domains share the same folder structure and files and content, so no matter what I do, it will affect all the 3 sites. Hope i am explaining clearly

What i mean is i can use the 3 domains and use my FTP login and all the 3 points to the same folders and files

Thanks
0
 
LVL 9

Expert Comment

by:cmorffew
ID: 34928091
You might have to look to your registrar not your hosting site(if they are different) to change the DNS entries.

In the mean time, what happens if you turn the other 2 sites off in IIS?  Check the header values for the sites you want to turn off and add the values to the main site header in IIS.  This might solve the problem without having to go and play with your DNS settings. - dont know how that will effect the Search Engine Bots though.
0
 
LVL 1

Author Closing Comment

by:niceoneishere
ID: 35072154
thanks
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cannot interpret token '"' at position 10. 3 25
Error in Visual Project 10 48
Datagridview column resizing 8 27
Adding Rows to Grid 4 32
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question