Forum Moderators: skibum

Message Too Old, No Replies

Correct Redirect of Affiliate Links

Will this type of redirect work OK?

         

Esteban

4:38 am on Dec 23, 2006 (gmt 0)

10+ Year Member



Hello,

I would like to create "custom" links for my affiliate links to hide the long URL's.

If use this type of URL for an affiliate link:

www.mysite.com/links/link1.php

and then use this code in the header of link1.php to redirect:
<?
header("Location: http://www.example.com/?affid=1234");
?>

Will I be creating any problems for myself? Is there anything I am missing?

Should I put "no follow" on the link and or "no index" on the .php page?

Thank you,

Esteban

[edited by: encyclo at 1:42 pm (utc) on Dec. 23, 2006]
[edit reason] switched to example.com [/edit]

restless

12:10 pm on Dec 23, 2006 (gmt 0)

10+ Year Member



<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.example.com" );
?>

You should make it a 301 redirect so that if search engines index your www.mysite.com/links/link1.php page then they know the page has moved permanently. You won't need a noindex or nofollow then

[edited by: encyclo at 1:43 pm (utc) on Dec. 23, 2006]
[edit reason] switched to example.com [/edit]