php redirect and robots.txt question

Discussion in 'PHP' started by TEGS, Jun 10, 2008.

  1. #1
    I'm hiding affiliate links on my wordpress site using

    http:// mysite/ affiliatefolder/ affiliatelink.php

    Then using

    <?php
    header("Location:http://www.myaffilite.com/affredir.cfm?myaffiliatelink");
    ?>

    in my affiliate folder

    I made a sitemap, submitted it, and am getting warnings for too many redirects in my urls.

    Do I need to make a robots.txt file disallowing my affiliate file?
    Would that be enough?
     
    TEGS, Jun 10, 2008 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    sitemap has no link with your affiliate file

    Sitemap is simply a xml file

    Where are you getting error?

    Regards

    Alex
     
    kmap, Jun 11, 2008 IP
  3. Lordo

    Lordo Well-Known Member

    Messages:
    2,082
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    190
    #3
    I guess they detected the redirect. OK maybe a .htaccess redirect will be useful. Post the full redirection details.
     
    Lordo, Jun 11, 2008 IP