header("Location: " . $final_destination, true, 301)
In my defense, I generally wrap this call into my own redirect function.
Reply on news.ycombinator.com