Need to point site to another site in index.html

I am in a pickle and have a new approach (Plan B at the bottom)

I need to forward my domain to a partner's website, but I need emails to work using my domain.

I prefer hosting at RackSpace.com

The problem I had when creating a CNAME record was I got the domain to forward, but that broke the email. The MX records were being read from the target website, which is not RackSpace.

So, I canceled my email accounts at RackSpace and create new accounts at Zoho, thinking this would solve the problem.

It did not.

Here are my three attempts from BlueHost:

With A Record
With No A Record and No CNAME
With A Record and CNAME
Any other ideas for this before going to Plan B?

My new approach is to point my domain at a real super-simple website. In the index.html I re-route to the target domain.

Any problems with this?

My partner’s IT guy said it was okay to forward all traffic.

What does the index.htm look like?
What is that one line of code?

Thanks
newbiewebSr. Software EngineerAsked:
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.

David Johnson, CD, MVPOwnerCommented:
create an A record www pointing to the ip of the destination web server
0
newbiewebSr. Software EngineerAuthor Commented:
I thought I did that and displayed it on my first image. No?
0
David Johnson, CD, MVPOwnerCommented:
in what you posted you don't have a www record
dns example
0
Top Threats of Q1 & How to Defend Against Them

WEBINAR: Join WatchGuard CTO and our Threat Research Team on Aug. 2nd to hear the findings from our Q1 Internet Security Report! Learn more about the top threats detected in the first quarter and how you can defend your business against them!

newbiewebSr. Software EngineerAuthor Commented:
I posted three trials, none of which worked.

In the first one, there was an A record, which pointed to the static IP of the target domain that I want to reroute to.


Also, what is the single line for the  index.html to make my site re-route, in the event I can not get the DNS to update.

Thanks.
0
David Johnson, CD, MVPOwnerCommented:
you need the WWW A record as I showed in my post.  That or a CNAME record that points to another DNS location i.e.
CNAME www example.com
0
newbiewebSr. Software EngineerAuthor Commented:
So, instead of using @ I use www?

Or do you means the domain must be www.targetdomain.com

?
0
newbiewebSr. Software EngineerAuthor Commented:
It required an IP address, so I did it this way...

So, far, it's not resolving. Maybe if I wait a while it'll work...

www for name only
0
David Johnson, CD, MVPOwnerCommented:
@ references the root domain name
so use www so now it knows that it will prefix www to the domain name and redirect to the ip address you specify
0
David Johnson, CD, MVPOwnerCommented:
if you are using a hosted/shared web server then you normally have to use a cname vice an A record
CNAME www www.mynewdomain.com
or
CNAME www mynewdomain.com
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
newbiewebSr. Software EngineerAuthor Commented:
Wow! It works.

With two CNAME records:

@
www

pointing to www.mydomain.com
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
Web Development

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.