Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have two registered domains. Say the domains are and points to

I also have a few subdomains in, and I want to be able to do this:

  • ->
  • ->

And so on.

Problem is, I can't figure out through cPanel, or WHM how to do this, if it is possible. I also went through httpd.conf , and changed ServerAlias under the VirtualHost of

So what I have is:

<VirtualHost .....:80>
DocumentRoot /home/originaldomain/public_html/subdomain1

I then restarted httpd, using service httpd restart, but nothing seems to work.

P.S.: I'm using CentOS 5.3.

share|improve this question
You want to point to and so one? Right now your question is confusing. There is no point in redirecting to itself. – user555 May 11 '13 at 20:25

1 Answer 1

up vote 1 down vote accepted

You have to change some NS or A Records for each entry.

Here is an example.

My domain is and have hosting. Another Domain is and is only a domain name.

I forwarded all visitors to and each sub-domain like, is pointing to and same for other sub-domains also.

I have just updated the Name servers as below. points to and And to point to hosting page, I used A records for each domain.

I use Windows hosting and I have added a Domain Alias in control pannel for domain but didn't tried with subdomains in Linux hosting.

You can check details with below link.

share|improve this answer
Thank you very much! sorry for late reply! – Michael Schinis Aug 7 '13 at 19:34
Glad to know that you got solution. – John Bhatt Aug 11 '13 at 11:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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