Forum Moderators: coopster
$goto = "http://www.website.com/catalog";
header("HTTP/1.0 301 Moved Permanently");
header ("Location: $goto");
If there is a link to another site then there is no way for you to stop that link getting redirected, unless you want to check the return headers for that link before you let people access it. You can use CURL to look at the link then depending on the status of that link decide what you want to do about it.
<edit>
Sorry didnt notice this was your first post.
So welcome along :)
[edited by: PHP_Chimp at 11:46 pm (utc) on Dec. 4, 2007]