# Plugin to rewrite external links on new posts

**URL:** https://meta.discourse.org/t/plugin-to-rewrite-external-links-on-new-posts/85517
**Category:** Marketplace
**Created:** [April 17, 2018, 9:48am UTC](https://meta.discourse.org/t/plugin-to-rewrite-external-links-on-new-posts/85517 "2018-04-17T09:48:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mihir](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Mihir](https://meta.discourse.org/u/Mihir)
#### Post date: [April 17, 2018, 9:48am UTC](https://meta.discourse.org/t/plugin-to-rewrite-external-links-on-new-posts/85517/1 "2018-04-17T09:48:16Z")

</div>

I want a plugin that will intercept all new (and modify existing post too) topic/post and rewrite external URL to something like following

“[http://google.com](http://google.com)” —\> “[http://abc123.com/goto/http://google.com](http://abc123.com/goto/http://google.com)”

The end goal here is to make all external links go through my domain (I will write script on abc123 for the redirect, that is not part of this job).

There are no existing posts on the forum, so only it does not need to any find-replace, only listen to new changes.

If the same functionality can be achieved through an adopted theme, that’s fine with me too.

Please post your offer below, I will PM you then.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 17, 2018, 10:33am UTC](https://meta.discourse.org/t/plugin-to-rewrite-external-links-on-new-posts/85517/2 "2018-04-17T10:33:46Z")

</div>

You’ll have better luck if you provide a budget.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 17, 2018, 11:29am UTC](https://meta.discourse.org/t/plugin-to-rewrite-external-links-on-new-posts/85517/3 "2018-04-17T11:29:15Z")

</div>

Discourse does link tracking. Depending on they you’re trying to accomplish, a plugin that does wherever you’re trying to do if probably a better idea.

If you don’t have a budget, developers don’t know whether it’s worth the time to respond.

---

<div class="post-metadata">

### Author: ![Mihir](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Mihir](https://meta.discourse.org/u/Mihir)
#### Post date: [April 17, 2018, 12:22pm UTC](https://meta.discourse.org/t/plugin-to-rewrite-external-links-on-new-posts/85517/4 "2018-04-17T12:22:48Z")

</div>

Thanks. I am trying to send all traffic through a custom script, so I can append affiliate parameters wherever applicable and redirect other domains as they are.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 17, 2018, 12:22pm UTC](https://meta.discourse.org/t/plugin-to-rewrite-external-links-on-new-posts/85517/5 "2018-05-17T12:22:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
