Two Domains for one Website

Discussion in 'Site & Server Administration' started by phgonline, Oct 8, 2006.

  1. #1
    Hi, is there a way to link two different domains to point to one website? For ex. www.whatever.com goes to www.whatever1.com to the same website.

    Need help.
     
    phgonline, Oct 8, 2006 IP
  2. RedruM*

    RedruM* Peon

    Messages:
    626
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yes , it's called redirection.
     
    RedruM*, Oct 8, 2006 IP
  3. ravianz

    ravianz Notable Member

    Messages:
    1,536
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    250
    #3
    in CPanel its done using option of Parked domains
     
    ravianz, Oct 8, 2006 IP
  4. classifieds

    classifieds Sopchoppy Flash

    Messages:
    825
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    150
    #4
    Make sure that you use a 301 redirect.

    Here's some php you can place in the web root - index.php of one of the domains to do a 301 (permanent) redirect to the other:

    <?
    header( "HTTP/1.1 301 Moved Permanently" );
    header( "Status: 301 Moved Permanently" );
    header( "Location: http://www.new-url.com/" );
    exit(0); 
    ?>
    
    Code (markup):
     
    classifieds, Oct 8, 2006 IP
  5. phgonline

    phgonline Peon

    Messages:
    333
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks alot guys
     
    phgonline, Oct 8, 2006 IP
  6. blazed

    blazed Guest

    Best Answers:
    0
    #6
    You can park the domain via cpanel.
     
    blazed, Oct 12, 2006 IP
  7. websiteideas

    websiteideas Well-Known Member

    Messages:
    1,406
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #7
    The purpose of the redirect is to preserve PR, is that right?
     
    websiteideas, Oct 12, 2006 IP
  8. blazed

    blazed Guest

    Best Answers:
    0
    #8
    yeah... but sometimes due to some navigational purpose one have to redirect the page.
     
    blazed, Oct 16, 2006 IP