Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 can this be accomplished?

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.

share|improve this question

closed as off-topic by HopelessN00b, Ward, masegaloeh, MadHatter, bangal Feb 24 at 10:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

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.

share|improve this answer

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

share|improve this answer

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