Reputation: 95
I've been searching for a php script which does dynamic url redirect, but could not find any. Does anyone know a good one? I want to track outgoing clicks and to transform outgoing urls into this: website/go/feedtitleID
See image: https://i.sstatic.net/MpZ1g.jpg
Thanks
Upvotes: -3
Views: 278
Reputation: 662
You can use header function for dynamic redirection. For example,
header("Location: example.com");
exit();
Always use exit() or die() after header function to prevent execute below script.
Upvotes: 0