0
Welcome Guest! Login
0 items Join Now

PHP redirect not working

  • PHP redirect not working

    Posted 13 years 6 months ago
    • Hi,

      I was just wondering if anyone has some suggestions as to why I can't get php redirect to work in Joomla.

      I'm using the Modulus template and have tried several different methods but all have failed.

      Here is my favorite one and it would be great if I could get it to work.

      internal link: linkto/redirect.php/affiliate

      code from redirect file;

      $urls = array (
      'affiliate' => ' www.dpbolvw.net/click-5433591-10777975%22%3E ',
      'hypnosis' => 'http://www.hypnosisdownloads.com?509'
      );

      header('Location: ' . $urls[$_GET]);

      ?>

      This is exactly as I copied it from a website that I found, can't remember thier url anymore. I read the header has to go at the top and it looks to me like the beginning code is missing, but even when I played around with it by adding <?php and moving the header to the top it still failed.

      Any help would be greatly appreciated.

Time to create page: 0.085 seconds