-3

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.stack.imgur.com/MpZ1g.jpg

Thanks

merxie
  • 95
  • 10
  • It is not clear what you are trying to achieve. Do you need [Human readable URLs](https://en.wikipedia.org/wiki/Semantic_URL)? If not please give a more detailed explanation and examples – Ruslan Bes Jun 21 '16 at 07:07
  • I've added a image to my original post. Hope it's clear? – merxie Jun 21 '16 at 07:16
  • Not really. If [this](https://support.google.com/webmasters/answer/66355?hl=en) is what you are trying to achieve, you won't get help here. – Ruslan Bes Jun 21 '16 at 07:35
  • I don't think so. I think is url redirection what I need. – merxie Jun 21 '16 at 07:51
  • Check mod_rewrite in Apache. This module is used normally for URL rewriting – Ruslan Bes Jun 21 '16 at 07:55
  • this seems to be a little complicated and would not track clicks. It would be great a straight out the box solution – merxie Jun 23 '16 at 06:55

1 Answers1

0

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.

Davinder Kumar
  • 652
  • 4
  • 17