How to set up affiliate links that never break, even years later
November 28, 2026 · Hoplytic team · 5 min read
Read the video transcript
How do you build affiliate links that still work years later?
Publish a link you control, instead of the raw affiliate link. Put it on your own domain, so you can switch tools later. Give every important link a backup destination for when an offer dies. And pick a tool that keeps redirecting if you stop paying.
Name links after the thing, not the program, so they survive a network change. Use a three-oh-two or three-oh-seven redirect, never a three-oh-one, which browsers remember.
Best backup: the same product on another program you're approved for. Next, the merchant's category page, through your affiliate link. Then your own roundup page.
Keep an export of every link, and store it with your backups. Each month, run your top twenty links through a redirect checker. Steady clicks with zero sales usually means a dead offer or a lost sub-ID.
At zero credit, Hoplytic links keep redirecting for at least six months, with a warning thirty days before any pause. Links run on your own domain, and a backup link takes over when the destination stops working.
The full guide is right below. Hoplytic: ad tracking made simple.
Key points
- Never publish a raw affiliate link in a place you can't easily edit; publish a link you control and point it at the offer.
- Put that link on a domain you own, so you can move to another tool later without touching a single post.
- Give every important link a backup destination, so a dead offer sends visitors somewhere useful instead of an error page.
- Keep an export of every short code and destination, and pick a tool whose links keep working when you stop paying.
- Check your links on a schedule; most breaks are silent and only show up as a drop in earnings.
A blog post from 2021 still ranks. A YouTube video from 2022 still gets views. The affiliate links inside them are where your old content earns, or quietly stops earning. Here is how to set links up so they survive offers ending, tools changing and cards expiring.
Short answer: publish a link you control, on a domain you own, instead of the raw affiliate link. Point it at the offer, give it a backup destination, keep an export of every link, and use a tool that keeps redirecting if you stop paying. Then when anything changes, you fix it in one place and every post, video and email follows.
If a link is already broken, start with why affiliate links stop working, which diagnoses the causes one by one. This guide is about building links so those causes can't hurt you.
Layer 1: one link you control between the content and the offer
A raw network link like https://www.awin1.com/cread.php?awinmid=1234&awinaffid=56789 is fine in a page you edit every week. It is a liability in places that are hard or impossible to edit later: video descriptions, podcast show notes, PDFs, printed QR codes, old newsletters already sitting in inboxes, and Pins that other people saved.
Instead, publish a tracking link such as go.yoursite.com/standing-desk, and let it redirect to the affiliate link. When the merchant leaves Awin and joins Impact, you change the destination once. Every place that link lives now goes to the new program.
Two rules make this work:
- Name links after the thing, not the program.
/standing-desksurvives a network change./awin-flexispotdoesn't make sense after one. - Use a 302 or 307 redirect, never a 301. Browsers remember 301s and may skip your link next time, so a destination change doesn't reach returning visitors. More in 301 vs 302 for affiliate links.
Layer 2: your own domain, so the tool is replaceable
A short link on a tool's shared domain, like tool.link/x7k2, depends on that tool forever. If it shuts down, changes its terms or gets blocked by a platform, every link goes with it, and you can't move them anywhere.
A link on your own subdomain, like go.yoursite.com/x7k2, is portable. The domain points at your current tool with one DNS record. If you switch tools, you recreate the same short codes in the new one and change the DNS record. Visitors never notice. Setup details are in custom tracking domain setup.
The one new risk is the domain itself. Turn on auto-renew, keep the payment card current at your registrar, and never delete the tracking DNS record while links still use it.
Layer 3: a backup destination for every link that matters
Offers end. Products get discontinued. Merchants leave networks. Usually the link still "works" but lands on an error page, the network's "offer unavailable" screen or the store's home page, where your commission chances are poor.
A backup destination is a second URL the link uses when the main one is dead. Good backups, in order of preference:
- The same product on another program you're approved for.
- The category page at the same merchant, through your affiliate link.
- Your own page about the topic, such as a "best standing desks" roundup, where visitors can pick another product.
A backup only helps if something checks the main destination. Ask your tool how often it checks and what counts as "dead": an error status, a 404, a redirect to a home page.
Layer 4: a tool that doesn't hold your links hostage
Before you put hundreds of links on any tool, find out three things in its terms or help pages:
| Question | Good answer | Bad answer |
|---|---|---|
| What happens when I stop paying or hit a limit? | Links keep redirecting for a long grace period, with a warning first | Links stop, or go to a "this link is disabled" page |
| Can I export every link? | Yes: short code, destination and settings, as CSV or through an API | Only by copying them one at a time |
| Can links run on my own domain? | Yes, with a CNAME record | Only on the tool's domain |
WordPress link plugins have their own version of this risk: cloaked links like yoursite.com/recommends/desk exist only while the plugin is active. If you change hosts or remove the plugin, they return a 404. Keep a server-level redirect file as a fallback if you rely on one.
Layer 5: an export and a check schedule
Keep a simple inventory: short code, destination, network, where the link is published, and the backup. Export it from your tool every few months and store it with your other backups. If anything goes wrong, this file is how you rebuild.
Then check on a schedule. Most breaks are silent: no error message, just a slow fall in clicks or commission on one link. A practical routine:
- Monthly: sort links by clicks and look at the top 20. Run each through a redirect checker to confirm it still lands on the right page with your sub-ID intact.
- Monthly: compare commission per link with the month before. A link with steady clicks and zero sales usually means a dead offer or a lost sub-ID.
- When a network emails you: program closures and commission changes arrive by email. Search your inventory for that merchant the same day.
Don't delete, redirect
When you retire a link, point it at something useful rather than removing it. Deleted links usually return a "not found" page, and the old post or video that carried it can never be fixed. A retired link that sends people to a relevant roundup page still earns.
How this works in Hoplytic
Hoplytic was built around the fact that links outlive subscriptions. At $0 credit or over the free limit, links keep redirecting for at least 6 months; only tracking pauses, you get a warning 30 days before any link would pause, and Hoplytic never deletes your links. Links run on your own domain with one CNAME record (up to 20 domains), each link can have a backup link that takes over when the destination stops working (checked every 30 minutes), and you can move a link to a new offer by adding it as a rotation offer and pausing the old one. A link you remove yourself does stop redirecting, so retire links by pointing them elsewhere instead. If you are coming from Pretty Links, ThirstyAffiliates or Lasso, the import gives you a redirect file so your old /go/ addresses keep working.
Questions people ask
Do affiliate links expire?
The link itself has no expiry date. It stops paying when the program, the offer or a tool in the middle goes away, which is why the setup around the link matters more than the link.
What happens to my links if I cancel my link tool?
It depends on the tool. Some stop redirecting when a subscription ends, some keep going for a while, and a WordPress plugin's links stop when the plugin is removed. Read the tool's cancellation terms before you put thousands of links on it.
Can I change where an affiliate link goes after I publish it?
Only if what you published is a link you control, such as a short link or a cloaked link on your own domain. A raw network link in a video description can only be changed by editing every place it appears.
Should I use a 301 redirect for affiliate links?
No. Browsers cache 301s, so returning visitors may skip your link and you can't reliably change the destination later. Use a 302 or 307.
More in Tracking fundamentals
Also: tracking glossary · ad platform macros · Markdown copy