I have an old domain www.olddomain.com, and now I have shifted my content to www.newdomain.com. Both of the domains are residing in the same root folder on a sharehost.

I use CPanel to manage them.

Now, when the user types in www.olddomain.com, I want it to be redirected to www.newdomain.com, with the address bar showing www.olddomain.com. How to do this in cpanel?

I tried to use "redirects" feature in Domains list, and although I could get the redirection, but the address bar showed www.newdomain.com, not www.olddomain.com.

Any idea?

link|improve this question

54% accept rate
feedback

2 Answers

Sounds like you would need to setup a CNAME for www.olddomain.com to make it an alias for www.newdomain.com. This help file from Google Apps has information about setting up CNames on popular domain registrars.

link|improve this answer
feedback

You need to remove any redirects use cPanel's parked domains feature: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/ParkedDomains

Alternatively, you can use Greg's answer, but that's assuming you are on a dedicated IP or you have a vhost entry setup (parked domains do this for you) for olddomain.com

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.