HTML or PHP Redirect

Discussion in 'ClickBank' started by bl4ckmaN^, Jun 12, 2008.

  1. #1
    As we all know cloaking is very useful, but which is the best method to cloak the hoplinks?

    I remember I asked this previously, but couldn't find the right answer. I am not going to ask you here to list the ways how can I hide my hoplink.

    Just tell me, which is better HTML or PHP cloaking and why....

    If possible write the code, that you are using.

    Thanks
     
    bl4ckmaN^, Jun 12, 2008 IP
  2. badar100

    badar100 Peon

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    badar100, Jun 12, 2008 IP
  3. nadavs

    nadavs Active Member

    Messages:
    657
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I agree with badar, go with PHP. Google doesn't like HTML redirects (probably because Sergey Brin doesn't like them), but PHP redirects are fine (but exclude them from sitemaps you upload to Google). Also, some people turn off meta redirects (AKA HTML redirects), but PHP redirects can't be turned off.

    badar gave the right code about me, so my job here is done.
    nadavs
     
    nadavs, Jun 12, 2008 IP
  4. emon878

    emon878 Active Member

    Messages:
    551
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #4
    htaccess redirects in my opinion are easiest, best and fastest put this in your htaccess file

     Redirect 301 /yourpage.html http://xxxxx.ipodpsp.hop.clickbank.net 
    Code (markup):
     
    emon878, Jun 12, 2008 IP
  5. lemonarian

    lemonarian Peon

    Messages:
    841
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yep, PHP redirects are much smoother. A lot of people avoid clicking things that end with .php though.

    What I do is I make a new directory on my domain for every product I'm promoting, and I put the php file there and I name it "index.php". So it looks better.

    Here's the code for a 301 php redirect, which I use.

    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.1ordersys.com/aff/?aid=24914&pid=10723" );
    ?>
     
    lemonarian, Jun 12, 2008 IP
  6. TheForexGuy

    TheForexGuy Well-Known Member

    Messages:
    520
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #6
    PHP working in conjunction with htaccess is sweet!

    I suggest to look more into ModReWrite
     
    TheForexGuy, Jun 12, 2008 IP
  7. anarmyofme

    anarmyofme Well-Known Member

    Messages:
    1,136
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    130
    #7
    I agree with Tom on this one. It's good for seo too!
     
    anarmyofme, Jun 12, 2008 IP
  8. chickut

    chickut Banned

    Messages:
    168
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    As a silent noob here at DP I think it is finally time to contribute back to the community after all the moola you guys made me.


    1.) Add a robot.txt to your main directory

    2.) Put this in there
    *Changing the directory where you store your php redirects
     
    chickut, Jun 12, 2008 IP
  9. Dave90210

    Dave90210 Well-Known Member

    Messages:
    1,087
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    183
    #9
    So basically the PHP redirect will allow me to redirect using Adwords without getting in trouble?
     
    Dave90210, Jun 12, 2008 IP
  10. bl4ckmaN^

    bl4ckmaN^ Well-Known Member

    Messages:
    4,641
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    165
    #10
    Thanks guys. Now I am clear.

    I will go with PHP.
     
    bl4ckmaN^, Jun 13, 2008 IP
  11. JayXtreme

    JayXtreme Guest

    Messages:
    149
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I have to throw my vote in here for PHP too, include with .htaccess

    Jay
     
    JayXtreme, Jun 13, 2008 IP
  12. amitfan

    amitfan Active Member

    Messages:
    842
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #12
    Thanks a lot for this thread. Something good to learn
     
    amitfan, Jun 13, 2008 IP
  13. GreatWebSuccess

    GreatWebSuccess Peon

    Messages:
    226
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Best method hands-down is .htaccess, after that PHP :p
     
    GreatWebSuccess, Jun 13, 2008 IP
  14. crdude

    crdude Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    If you have cpanel hosting you can do .htaccess really easy be clicking on redirects from your cpanel frontend, then enter whatever filename you want to to redirect to your affilliate url, select permenant redirect and it will create the .htaccess file for you.
     
    crdude, Jun 13, 2008 IP
  15. TheVccMatey

    TheVccMatey Peon

    Messages:
    5,346
    Likes Received:
    208
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Thanks for the info. I was looking for this.
     
    TheVccMatey, Jun 14, 2008 IP
  16. sar420

    sar420 Notable Member

    Messages:
    3,147
    Likes Received:
    212
    Best Answers:
    0
    Trophy Points:
    230
    #16
    I prefer PHP redirects as well. Makes it look like the product is on your own site
     
    sar420, Jun 14, 2008 IP