# Link rewriting for affiliate codes

**URL:** <https://meta.discourse.org/t/link-rewriting-for-affiliate-codes/52949>\
**Category:** Feature\
**Created:** [16 november 2016 om 02:51 UTC](https://meta.discourse.org/t/link-rewriting-for-affiliate-codes/52949 "2016-11-16T02:51:40Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)\
**Post date:** [26 januari 2021 om 17:38 UTC](https://meta.discourse.org/t/link-rewriting-for-affiliate-codes/52949/5 "2021-01-26T17:38:21Z")

</div>

This discussion has prematurely ended. I may need to re-think the monetization of our community.

In my case I would need to add a prefix to an URL.

`http://merchantxyz.com/....`

and I would need to convert that into…

`https://tracker.adagency123.com/t/t?a=12345678&as=87654321&t=2&tk=1&url=https://merchantxyz.com/...`

There are several topics that touch this issue, but was there actually a solution ready for production?

---

_[View the full topic](https://meta.discourse.org/t/link-rewriting-for-affiliate-codes/52949)._
