1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can I Redirect a Subdomain ?

Discussion in 'White Hat SEO' started by caneman, May 24, 2010.

  1. caneman

    caneman Regular Member

    Joined:
    Jan 29, 2010
    Messages:
    338
    Likes Received:
    92
    Noob 101 question, can I setup a subdomain to redirect to another url?

    If I do this will the primary domain be affected by the subdomain redirect?

    Thanks.
     
  2. thomansfel

    thomansfel Jr. VIP Jr. VIP

    Joined:
    Dec 11, 2009
    Messages:
    535
    Likes Received:
    162
    Occupation:
    working for myself
    Location:
    in a cave with WiFi
    yes you can easily setup the redirection for a subdomain or as many as you want and the main domain wont be affected
     
    • Thanks Thanks x 1
  3. AboutBizz

    AboutBizz Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 24, 2007
    Messages:
    389
    Likes Received:
    152
    interesting question... any links on HOW to do it? I searched BHW and did not uncover any... tnx in advance
     
  4. caneman

    caneman Regular Member

    Joined:
    Jan 29, 2010
    Messages:
    338
    Likes Received:
    92
    @thomansfel thanks... i just want to do a redirect to a cpa link

    @aboutbizz your hosting provider should be able to give you all the info you are looking for, just setup a subdomain and then redirect it, its all there in your cpanel
     
  5. AboutBizz

    AboutBizz Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 24, 2007
    Messages:
    389
    Likes Received:
    152
    @caneman...thanks
     
  6. maximillian_cooper

    maximillian_cooper Registered Member

    Joined:
    Mar 17, 2010
    Messages:
    87
    Likes Received:
    74
    Location:
    Finland
    u can use simple php redirect
    make folder in your websites ftp root (where your index.html and all the other stuff is)
    make a folder "cpa"
    now u created web address => http://yourdomain.com/cpa/

    in windows just make a text file .txt,
    put this inside:
    <?php

    header( 'Location: http://www.cpa-address.com/hello.html' ) ;

    ?>
    now save and rename that file to index.php, upload it to the folder you created and youre done, you can use http://yourdomain.com/cpa/ to redirect people to wherever u want


    http://php.about.com/od/learnphp/ht/phpredirection.htm
     
    Last edited: May 26, 2010