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

Simple redirect from domain name to clickbank ID

Discussion in 'Cloaking and Content Generators' started by lazyentrepreneur, Aug 13, 2009.

  1. lazyentrepreneur

    lazyentrepreneur Junior Member

    Joined:
    Jun 8, 2009
    Messages:
    191
    Likes Received:
    44
    I've searched the forums and Google, but all I have really found is how to change a redirect and mask of your clickbank ID from a subdomain (hxxp://www.yourpage.xxx/subdomain > Clickbank ID and Salespage). All I want to do is forward my domain name to the clickbank ID. It doesn't really bother me so much if it shows the clickbank ID once they've reached the merchant's salespage.

    I went in my hosting account and clicked forwarding on the domain name and selected 301 redirect. I did not select masking. I put in my clickbank hop ID for the domain to forward to. I went in my FTP and changed the old index.html landing page I set up for an old product and renamed it to index2.html so the landing page wouldn't show up anymore. Now when I type in the URL for my domain name it doesn't go to the Clickbank affiliate ID or the merchant's salespage.

    Do I need to wait longer for the changes to be made on the hosting account's servers? Or do I need to fix the nameservers? Not sure why I'd need to change the nameservers for it to work, but if I need to do so, what do I need to do for it to work properly?

    UPDATE: Solution found at bottom of this post in my reply.
     
    Last edited: Aug 13, 2009
  2. jrslyrics

    jrslyrics Newbie

    Joined:
    Dec 25, 2008
    Messages:
    40
    Likes Received:
    15
    YOu can do this in cpanel. create the subdomain. Once its created go into redirects select the sub domain and then enter the url. done.
     
  3. lazyentrepreneur

    lazyentrepreneur Junior Member

    Joined:
    Jun 8, 2009
    Messages:
    191
    Likes Received:
    44
    I don't want a subdomain. I want the original URL to forward to clickbank ID.
     
  4. lazyentrepreneur

    lazyentrepreneur Junior Member

    Joined:
    Jun 8, 2009
    Messages:
    191
    Likes Received:
    44
    OK, I figured it out. Use the following code, save it as your index.php file and upload to host (I have removed the http and replaced it with hXXp right under the DOC type in this code because I don't know if I'm allowed to post URLs yet):

    Code:
    [FONT=Arial][SIZE=4]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "hXXp://www.w3.org/TR/html4/loose.dtd">
    <html lang="en">
    <head>
    [/SIZE][/FONT][FONT=Arial][SIZE=4]<meta http-equiv="ref[/SIZE][/FONT][FONT=Arial][SIZE=4]resh" content="0;url=YOURDOMAINNAMEURL">[/SIZE][/FONT]
    [FONT=Arial][SIZE=4]</head>
    <body>
    </body>
    </html>[/SIZE][/FONT]
    
    Now change the YOURDOMAINNAMEURL in the metatag and replace with your domain URL or clickbank ID you want your domain to forward to. You do not need to put a quotation before the URL. It looks like it is missing but it works fine without it.
     
    Last edited: Aug 13, 2009