Need to permantly redirect all traffic coming from 2 of my old domains to a VPS

Discussion in 'Site & Server Administration' started by nismo, Mar 11, 2008.

  1. #1
    Hi Guys,

    Need your help here.

    I have 2 domains that I am pulling the sites down and I need to redirect ALL traffic that comes too all pages in the domain to go to a new VPS server with a new domain.

    Domain A (OLD)
    Domain B (OLD)

    Have to redirect all traffic coming into these 2 domains, even the subpages into

    DOMAIN C (NEW) which is in a VPS server.

    What do I do?
     
    nismo, Mar 11, 2008 IP
  2. boltok

    boltok Active Member

    Messages:
    257
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    78
    #2
    Can't you just add alias (CNAME) records in the DNS that point to DOMAIN C? In Apache, you'll just need to add ServerAlias statements for these in the VirtualHost section. E.g.:

    ServerAlias Domain_A
    ServerAlias Domain_B
     
    boltok, Mar 11, 2008 IP
  3. hycari

    hycari Peon

    Messages:
    228
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You might can do this at the registrar as well. If you have the two old domains on Server 1, and the new one on the VPS server, you may just want to switch it at the registrar. That way it takes that first server out of the equation.
     
    hycari, Mar 12, 2008 IP