The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How redirect a domain to another domain

Discussion in 'General Discussion' started by sureshvarma, Nov 17, 2004.

  1. sureshvarma

    sureshvarma Member

    Joined:
    Nov 13, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    How to redirect a domain to another domain

    I have 2 registerd domains.
    For 1st domain i have created a subdomain.
    Now i want the 2nd domain to be redirected to 1st domains subdomain.

    For example
    if we try http://.economictimes.com/ it will be redirected to http://economictimes.indiatimes.com/

    How can I do the same in my case?
    How to point a domain to subdomain?
     
    #1 sureshvarma, Nov 17, 2004
    Last edited: Nov 17, 2004
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Presuming that the DNS is all setup, you could simply edit /etc/httpd/conf/httpd.conf and add the following line to the VirtualHost container for the subdomain:

    ServerAlias economictimes.com

    Then reload Apache.

    However, this wouldn't give you the option to use email for the domain. To do that you could either:

    1. Setup the subdomain as a full cPanel account, then park the new domain against it.

    2. Park the new domain against indiatimes.com, then remove the ServerAlias for the new domain from the VirtualHost for that domain and put it under the one for the subdomain as mentioned above.

    3. Setup the new domain as a separate cPanel account and put a simply .htaccess file into the public_html directory for the subdomain to redirect to the new domain

    Many ways.
     
Loading...

Share This Page