I have some php pages on my website that only contains:
<?php
header('Location: http://www.example.com/?id=154077');
?>
I am affiliated to example.com and 154077 is my id to earn money.
When I put a textual link on my website I use <a href="the php page" rel="nofollow"> and those php pages are included in my robots.txt
But if I do a search by site: operator they appear on the Google index.
I tried to remove them by Webmaster tool. It works, but after some months they appear again.
I cannot put <meta name="robots" content="noindex, nofollow"/> on the header because it is a redirect.
Is there a solution to remove them from the index or using another technology for affiliation?