Results 1 to 2 of 2
  1. #1
    Join Date
    January 17th, 2005
    does anyone know the code for double redirect using php?

    for a single redirect is

  2. #2
    ABW Ambassador
    Join Date
    January 17th, 2005
    This does not work
    Header ("Location:");
    Header ("Location:");
    because the header Location is being overwritten since it only outputs one of each header tag.

    One way is to redirect to site1, and then have that page redirect to site2. (eg, have a header Location: on site 2 as well).

    Do you need to hit a page before sending the visitor to another page?

    You could call the first page with an fopen, and then redirect to the second (& final) page.
    One drawback with this method is that the first page is hit with your IP, and your script as the referrer, so if it's for tracking purposes, it probably won't work.

    Another question: why do you need to do two redirects? Surely just redirecting to the final page should be sufficient.

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Help With - PHP REDIRECT
    By AddHandler in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: March 25th, 2005, 03:43 PM
  2. Double Redirect Script
    By Freebie Hawk in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: January 8th, 2003, 11:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts