How to point two different domains to the same site

I have two domains

'cosasurgery.com' and 'midsurgery.com'

I want both of these to end up at the site 'cosasurgery.com'
all of the content is there, but I'm not sure about the best way to go about this. In the past I've created a new site on the server and then on the index.html page I put a redirect in the header.

Is there a better way to do this though? Something where the domain registrar actually sends both directly to 'cosasurgery.com'

Another thing to consider is that midsurgery is an old site that had content and I would like to preserve that google ranking while redirecting.

Thanks for any help
LVL 4
elliottbenzleAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Ernie BeekExpertCommented:
The easiest way is to create a CNAME record in DNS (for the domain midsurgery.com) and point that to cosasurgery.com and the same for the www.midsurgery.com to www.cosasurgery.com. Also that way, when you change the ip for your site for whatever reason the second will automatically follow.
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
xmlmagicianCommented:
Ask your provider to change the mx record of the website you want to re-direct
0
AustinComputerLabsCommented:
The best way is a 301 redirect.

Information found here: http://www.stevenhargrove.com/redirect-web-pages/

The best way to redirect those pages is by using something called a "301 Redirect". What this 301 redirect does, is it blatantly redirects to a different page when it is triggered. What makes the 301 redirect the best? Not only does it accomplish your redirect - it does it safely. No having to worry about the search engines penalizing you for it
0
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
DNS

From novice to tech pro — start learning today.