# Amazon link rewriting for affiliate codes

**URL:** <https://meta.discourse.org/t/amazon-link-rewriting-for-affiliate-codes/12174>\
**Category:** Feature\
**Created:** [24.Январь.2014 17:40:26 UTC](https://meta.discourse.org/t/amazon-link-rewriting-for-affiliate-codes/12174 "2014-01-24T17:40:26Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![fysics](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fysics/32/34080_2.png) [@fysics](https://meta.discourse.org/u/fysics)\
**Post date:** [28.Август.2014 03:50:56 UTC](https://meta.discourse.org/t/amazon-link-rewriting-for-affiliate-codes/12174/30 "2014-08-28T03:50:56Z")

</div>

> [@geek](#):
>
> amzn.to is their custom link shortener. It’s not going to work.

amzn.to is operated by bit.ly. It can be done. The steps would be:

1. Resolve amzn.to link into full link. (Using curl or some similar method.)
2. Make adjustments to the url as necessary.
3. (optional) Reshorten the link using bit.ly. [Amazon.com](http://Amazon.com) links are automatically shortened into amzn.to links.

---

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