Forum Moderators: coopster

Message Too Old, No Replies

How to redirect external urls from my site?

         

phprockz

7:57 am on May 20, 2006 (gmt 0)

10+ Year Member



Hi,

I get links from RSS.i need to redirect external urls from my site without reffering my site to them.any one let me know how can i do it.

barns101

8:41 am on May 20, 2006 (gmt 0)

10+ Year Member



I'm not sure if header("Location: http://www.example.com") shows the referring site or not, but that would be one way to do it.

eelixduppy

11:54 am on May 20, 2006 (gmt 0)



I believe if you send the header like this, it should work:
$header = "Referer: [shown_referer.com\n"...]
$header .= "Location: [site_to_go_to.com\n";...]

header($header);