Sorry if this is a relatively basic question. I'm hoping someone can school me a little more on redirection best practices.
I've setup a handful of pages with php redirects like such ;
<?php
header( 'Location: http://www.myaffiliatelink.com/sdfds4324dfdfgdfgdL?sid=' ) ;
?>
They're all in a "resources" directory on my server. My main reason for this was just to have the links look pretty on my site. So I don't have that clunky affiliate link showing in the status bar. I'm not looking to cloak/mask any referrers or do anything shady, I just want to make the link look nice.
That said, I don't want Google indexing all of these redirect pages I've set up in this Resources folder.
So my question is, should I just disallow /resources in robots.txt?
Or should I add a noindex tag to each of these redirect pages.
Or is there a better way to be doing this entire thing and are these redirect methods frowned upon by Google?
Thanks for any tips.
I've setup a handful of pages with php redirects like such ;
<?php
header( 'Location: http://www.myaffiliatelink.com/sdfds4324dfdfgdfgdL?sid=' ) ;
?>
They're all in a "resources" directory on my server. My main reason for this was just to have the links look pretty on my site. So I don't have that clunky affiliate link showing in the status bar. I'm not looking to cloak/mask any referrers or do anything shady, I just want to make the link look nice.
That said, I don't want Google indexing all of these redirect pages I've set up in this Resources folder.
So my question is, should I just disallow /resources in robots.txt?
Or should I add a noindex tag to each of these redirect pages.
Or is there a better way to be doing this entire thing and are these redirect methods frowned upon by Google?
Thanks for any tips.