Forwarding a domain with traffic

Discussion in 'Site & Server Administration' started by AfterHim.com, Jul 20, 2005.

  1. #1
    I have two domains, I want domain A (now empty) to forward to domain B full of content.

    I also want domain A to forward no matter what people type in...example www.example.com/exampleTestPage.php to forward to Domain B

    Is this possible? What is the best way to do it?
     
    AfterHim.com, Jul 20, 2005 IP
  2. ResaleBroker

    ResaleBroker Active Member

    Messages:
    1,665
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #2
    Adding this file to the .htaccess of domain A:

     
    ResaleBroker, Jul 20, 2005 IP
  3. AfterHim.com

    AfterHim.com Peon

    Messages:
    1,923
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks resale,

    Is there a way to do it just like that, but keep a certain directory unaffected? I have images that are now red X's all over the internet :)

    Brandon
     
    AfterHim.com, Jul 20, 2005 IP
  4. ResaleBroker

    ResaleBroker Active Member

    Messages:
    1,665
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Sure, place that code in the .htaccess file for the directory you want it to apply instead of your root directory.
     
    ResaleBroker, Jul 21, 2005 IP