How to redirect subdomain to affiliate link?

11 replies
i have a subdomain on byethost.com and would like to redirect the subdomain to an affiliate link. Anyone know how to do this?
#affiliate #link #redirect #subdomain
  • Profile picture of the author Tim3
    Originally Posted by 568129 View Post

    i have a subdomain on byethost.com and would like to redirect the subdomain to an affiliate link. Anyone know how to do this?

    Go to 'Redirects' in your cPanel and add you to/from links in there.
    this should automatically add the necessaries to your .htaccess file.

    Check to make sure it is re-directing. If it isn't open go to File Manager make sure you can see 'hidden files' open the ,htaccess file associated with the domain you are working with, and see if the redirection code is present, if it is at the bottom of code on the page cut and paste it in at the very top, make sure you don't add any spaces or extra lines. Click save and test again after clearing your browser cache.
    Signature

    {{ DiscussionBoard.errors[6778620].message }}
  • Profile picture of the author Adie
    Log-in to your cpanel and click on "redirects". No need to edit any htaccess file. You can just paste your affiliate link there and save..
    Signature



    Moderator's Note: You're only allowed to put your own products or sites in your signature.

    Signature edited.
    {{ DiscussionBoard.errors[6778633].message }}
    • Profile picture of the author Tim3
      Originally Posted by Adie View Post

      Log-in to your cpanel and click on "redirects". No need to edit any htaccess file. You can just paste your affiliate link there and save..

      ...and supposing doing this doesn't work?
      Signature

      {{ DiscussionBoard.errors[6778733].message }}
  • Profile picture of the author Jorge Vidaurre
    I went to the redirects sections and entered my affiliate link and it says The url you have entered appears to have invalid characters, please check and try again. how come it says that?
    {{ DiscussionBoard.errors[6778740].message }}
    • Profile picture of the author Tim3
      Has your link got any characters in it other than letters or numbers?
      Signature

      {{ DiscussionBoard.errors[6778774].message }}
  • Profile picture of the author edwinkoh
    Just create a new index.htm file, put it into the sub domain.

    In the index.htm file, put this code

    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.your-url-here.com">

    before </head>

    This will automatically redirect your subdomain.

    Hope this helps.
    {{ DiscussionBoard.errors[6779069].message }}
  • Profile picture of the author Jorge Vidaurre
    the affiliate link has equal sign and interrogation sign and forward slash.
    {{ DiscussionBoard.errors[6779461].message }}
  • Profile picture of the author Deepak Media
    You can upload a php redirect file in the file manager of your sub domain folder.

    Here's the script for php redirect...

    <?php

    header( 'Location: http://www.yoursite.com/new_page.html' ) ;

    ?>


    Save it as index.php and upload to your sub domain folder.
    Signature
    Digital Marketing Author | Speaker | Consultant

    Read my Blog: DigitalDeepak.com

    @ Bangalore, India.
    {{ DiscussionBoard.errors[6779519].message }}
  • Profile picture of the author lordspace
    So you've tried this in the .htaccess file
    Redirect /go/someaff yourafflink.com: The Best Search Links on the Net
    Signature

    Are you using WordPress? Have you tried qSandbox yet?

    {{ DiscussionBoard.errors[6779582].message }}
  • Profile picture of the author heiniken15
    You use .htaccess to redirects a link .
    Search google with Keywork "redirects link .htacess" . You'll like it
    {{ DiscussionBoard.errors[6779591].message }}
  • Profile picture of the author Jorge Vidaurre
    i created a index file and the redirect works now
    {{ DiscussionBoard.errors[6780838].message }}

Trending Topics