redirect subfolder to new domain ?

Discussion in 'Apache' started by basimfora, Feb 28, 2009.

  1. #1
    hello
    I need redirect domain.com/subfolder to subdomain.newdomain.com

    in same time I want redirect domain.com to newdomain.com

    how can I do that ?


    thanks so much in advance for any help :)
     
    basimfora, Feb 28, 2009 IP
  2. American

    American Guest

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <?php
       header( 'Location: http://new.site.com' ) ;
    ?>
    PHP:
    Or if your host allows, you could have better luck by getting them to add a CNAME entry to redirect it forward it for you.
     
    American, Feb 28, 2009 IP