Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    6

    Thumbs up 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?
    Last edited by sureshvarma; 11-17-2004 at 08:43 AM.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 07-20-2011, 07:50 AM
  2. Domain Redirect
    By jarius in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 04-01-2008, 07:20 PM
  3. redirect domain.com/file.html to sub.domain.com??
    By Devil Inside in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-14-2006, 04:38 AM
  4. redirect a parked domain to an add-on domain?
    By doeskin in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-15-2005, 10:30 AM
  5. sub domain redirect help
    By DWHS.net in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-11-2002, 12:38 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube