redirecting one domain to another

Lets see if I can write this without getting sidetracked.  I have two domains. and  The was pointing to another site, and is pointing to our existing site.  I have setup to point to the new site, I would like anyone who has bookmarked or uses that to come into the site to go to the .com domain.  Also I would rather it be something I little more robust then setting up a fake domain just to put in a redirect page, as I have about 5 more domains that I will have to do the same thing with.

Any thoughts?
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.

their r servral schemas to do this:

1- put a page on the old domain to sendRedirect to the new page
2- the Network people have a let of solutions to that , they may make both domains point to the same IP
3- ur name is Apache and Apache web server supports virtual hosts to be able to host multiple domains
4- Others also
jrachiever72Author Commented:
Wanted something a little more robust then that solution as it will cause more work down the road.
The domains already point to the same IP address.
I have these two domains, and a domain that goes to a different set of code.
Does the old setup have the same page structure as the new  If so, you could simply do a permanent redirect in's setup:

Redirect Permaent /
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Place this into your apache config:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.net$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^domain\.net$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]


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
jrachiever72Author Commented:

Is that inside the Virtual Host for the .net domain?

But make sure you enabled the rewrite_module
jrachiever72Author Commented:
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
Apache 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.