Affiliate links are long, ugly and full of tracking parameters, and the temptation is to make them disappear behind something short and tidy. That instinct is fine. What is not fine is the promise that often comes with it: that a shorter link somehow makes an affiliate link invisible, safer or exempt from the rules of the platform you post it on. It does not, and any tool or service implying otherwise is selling you a misunderstanding.
This guide shows the honest version of the job. The Link Shortener on Ovatly is not a hosted shortening service. It is a redirect rule generator for your own domain: it writes the configuration file that makes short paths on a domain you own jump to their long destinations. Used for affiliate links, that gives you clean, stable, typeable links under your own name. What it never gives you is cover.
Contents
- Quick answer
- What a short path on your own domain actually changes
- What it does not change
- How to shorten an affiliate link, step by step
- Worked example: an evergreen link and a seasonal offer
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
Quick answer
To shorten an affiliate link without getting flagged: generate a redirect rule that puts the full affiliate URL behind a short path on your own domain, using the Link Shortener, then follow the platform's affiliate rules exactly as you would with the long link, including every required disclosure. The redirect changes the link's appearance and gives you a path you control. It does not hide the destination, and flags come from rule-breaking, not from link length.
What a short path on your own domain actually changes
Three things change, and they are worth having. First, the visible link becomes short and readable: your domain plus a path you chose, instead of a long product URL carrying referral parameters. Second, the rule lives on your hosting, in a file you control, so the link does not depend on a third-party shortening service staying alive. Third, you can update or retire the path by editing your own file, and you can run two paths, a short one for print and a descriptive one for social, at the same destination.
The generator writes the rule in the format your hosting expects: a Cloudflare or Netlify _redirects file, an Apache .htaccess file, or Nginx rewrite rules. Nothing is hosted by Ovatly: there is no database, no account and no intermediary between your visitor and your rule file.
What it does not change
The destination is still the affiliate destination. When someone follows your short path, the redirect resolves to the full affiliate URL, with its tracking parameters intact, because those parameters are how the sale gets credited to you. Removing or disguising them would break the point of the link.
Every platform rule that applied to the long link applies to the short one. If a community bans affiliate links, a shortened affiliate link is still an affiliate link. If a platform or a regulator requires a disclosure next to affiliate recommendations, the disclosure is still required, in the same place, whatever the link looks like. A redirect is transparent infrastructure, the same kind of plumbing every website uses to move pages. It is not a disguise, and treating it as one is exactly how accounts get flagged.
How to shorten an affiliate link, step by step
- Open the Link Shortener. Optionally type your domain first, purely to preview how the finished short links will look.
- Add one row per affiliate destination: the short path you want, the full affiliate URL exactly as issued to you, and the status. Choose 301 for an evergreen recommendation you intend to keep, and 302 for a seasonal or experimental offer.
- Choose the configuration format that matches your hosting:
_redirectsfor Cloudflare or Netlify,.htaccessfor Apache, or rewrite rules for Nginx. - Copy or download the generated block and place it on your site as the file header instructs. If your host already has a file of that kind, add the new lines to it rather than replacing it.
- Test each short path in your browser before you publish it anywhere, and confirm it lands on the full affiliate destination.
Worked example: an evergreen link and a seasonal offer
Suppose a review on your site recommends a product through an affiliate URL of the usual shape: a long product address on a retailer's site, carrying referral parameters. In the generator, that destination gets one row with the short path /guide and status 301, because the recommendation is evergreen. The generated _redirects block contains the rule in this shape:
/guide https://example.com/long-guide 301
The destination in a real rule is your full affiliate URL, parameters included; the example here uses a placeholder address because the shape of the rule is the point. A seasonal offer for the same audience gets a second row with its own path and status 302, since you plan to change or remove it when the season ends. Both rules sit in the same file on your hosting, and both short paths work the moment the file is live.
Limitations and honest tradeoffs
The redirect file gives you no click statistics. It records nothing, so any counting has to happen in your hosting or analytics platform, which sees each visit to the short path.
One short path can only have one destination. If a program moves your affiliate URL, you edit the rule and the path keeps working, but you cannot make one path split traffic between two destinations. The generator flags duplicate paths so this never happens by accident.
And the central limitation bears repeating: this setup improves the link, not your standing with any platform. It cannot make a banned placement allowed, a missing disclosure acceptable or a low-quality recommendation welcome. Those outcomes are decided by what you post and where, never by the shape of the link.
Common mistakes
- Treating a short link as a disguise. The redirect is transparent and the destination is one click away for anyone, including moderators. Post only where affiliate links are welcome.
- Stripping the tracking parameters. They look like clutter, but they are how the sale is credited. The full issued URL goes in the destination, untouched.
- Using 301 for a temporary offer. A permanent redirect tells search engines the move is forever. Seasonal and experimental links get 302, so changing them later stays clean.
- Replacing an existing rules file. If your host already has a
_redirectsor.htaccessfile, add your new lines to it. Replacing it can break every redirect you already rely on. - Skipping the test click. A rule only works once the file is live on your hosting. Visit every new short path yourself before sharing it.
FAQs
Does shortening an affiliate link hide it from the platform? No. A redirect on your own domain is transparent infrastructure: anyone who follows the short path lands on the full affiliate destination, parameters and all. The short path changes how the link looks and where the rule lives, not where it goes or who can see that.
Will a short link stop my account from getting flagged? No. Flags come from breaking a platform's affiliate rules, such as posting where affiliate links are banned or skipping a required disclosure. Changing the link's shape does not change the rules that apply to it, and no format exempts you from them.
Should I use 301 or 302 for an affiliate link? Use 301 for an evergreen recommendation you intend to keep, because search engines transfer ranking signals through a permanent redirect. Use 302 for a seasonal or experimental offer you plan to change or remove, so the short path stays temporary.
Can two short paths point to the same affiliate destination? Yes. A short path for print and a descriptive one for social can both point at one destination. The reverse is blocked: one short path can only have one destination, and the generator flags duplicates so a path never points two ways at once.
How do I count clicks on a short affiliate link? Not from the redirect file, which tracks nothing. Your hosting or analytics platform sees each visit to the short path, so count the visits to that path there, for example as page views of the path itself.
Conclusion
A short affiliate link on your own domain is a tidier, sturdier link: readable in print, stable for years, and independent of any shortening service. It is not a hiding place, and the accounts that stay unflagged are the ones that follow each platform's affiliate rules with the short link exactly as they would with the long one. The natural companion question is how long that short path should be, which our guide to how long a short link should be works through. For more guides in this series, see our URL and Link Tools guides.