Redirects & Links

Vanity URLs in WordPress: Short Links You Actually Control

A short link on your own domain is easier to say out loud, survives a destination change, and counts its own clicks. Here is the setup and the naming discipline.

On this page
  1. Three Things It Buys You
  2. Naming: The Part People Get Wrong
  3. Pick a Prefix and Never Change It
  4. Use 302 by Default
  5. The Click Count You Get for Free
  6. Keep the List Flat and Documented
  7. Test After Every Change

A vanity URL is a short, readable address on your own domain that forwards somewhere else. Something like yoursite.com/go/newsletter instead of a forty character link with a tracking string on the end.

The obvious benefit is that you can say it out loud on a podcast. The useful benefit is that you can change where it points afterwards, which means every place you ever published it updates at once.

Three Things It Buys You

Repointability. This is the one that matters most and gets mentioned least. The link in your slide deck, in the printed flyer, in the email you sent last March: all of them keep working when the destination moves, because none of them ever knew the destination.

Independence. A third party shortener is a dependency. Free tiers change, companies get acquired, services shut down and take every link with them. A link on your domain lasts as long as your domain does.

Trust. Readers can see where a link goes. A shortened link from an unfamiliar domain is a small act of faith, and a meaningful share of people simply will not click one.

Naming: The Part People Get Wrong

Name a link for the job it does, not for the thing it currently points at.

Good: /go/hosting-deal/, /go/newsletter/, /go/podcast-offer/ Bad: /go/black-friday-2026/, /go/acme-v2-landing/, /go/summer-sale/

The bad examples are all correct today and stale next quarter. Once you rename a link you have broken every place it was published, which defeats the entire purpose.

The test is simple: will this name still make sense in two years when the destination has changed three times? If yes, use it. If no, describe the slot rather than the occupant.

Pick a Prefix and Never Change It

Put every vanity URL under a single path segment. /go/ is the common choice.

This keeps them in one namespace, which matters more than it sounds. Without a prefix, a vanity URL called /newsletter/ collides with a real page called /newsletter/ the day you decide to write one, and the resulting bug is confusing because both things look correct in isolation.

A prefix also makes them easy to audit. Everything under /go/ is a redirect, so listing them is trivial and nothing hides.

Use 302 by Default

This is the setting people get backwards, and it causes a real problem.

A 301 says the move is permanent, and browsers cache it hard. Repoint a 301 later and visitors whose browsers remember the old destination keep going there, sometimes for weeks. You cannot clear somebody else’s browser cache.

A 302 says the destination is temporary, which is exactly what a vanity URL is. Browsers re-check each time, so your change takes effect immediately for everyone.

Reserve 301 for genuine permanent moves of your own content. DevDome Redirect Manager sets the type per rule, so your site’s permanent redirects and your campaign links can live in one list with the right code on each. It is fully free with no rule limit, so building one link per slot is not something you have to ration.

The Click Count You Get for Free

Every visit to a vanity URL passes through your own server, which means it gets counted without any JavaScript involved.

That is a better measurement than the usual approach of attaching click listeners to links, because ad blockers strip a lot of those listeners and you never find out which clicks you lost. A redirect cannot be blocked in the same way: the visitor either arrives at the destination or they do not.

Practically, this gives you a per-link number you can compare across campaigns using identical measurement. The podcast mention, the newsletter, the sidebar banner, each pointing at its own link, each with its own count.

If you also want the outbound clicks that never go through a redirect, server-side click capture in DevDome Analytics records those for the same reason: the click is seen by your infrastructure rather than reported by the visitor’s browser.

Keep the List Flat and Documented

Vanity URLs accumulate. After two years you will have dozens, and the ones nobody can explain are the ones that break.

Two habits prevent the mess. Keep the structure flat, so /go/thing/ rather than nested paths that encode a hierarchy you will reorganise later. And keep a note against each rule saying what it is for and who asked for it.

Once a year, look at the click counts. Anything with zero clicks in twelve months is either dead or was never promoted, and you can retire it. Anything with unexpected traffic is worth investigating, because it usually means someone published it somewhere you have forgotten about.

Test After Every Change

The whole value of a vanity URL is that changing it is safe, so make the check part of the change.

Open it in a private browsing window, confirm you land where you intended, and if the destination is an affiliate or campaign link, confirm the tracking parameters survived. Then purge your cache layers, because a cached redirect response is the single most common reason a correct change appears not to have worked.

Thirty seconds each time, and the link keeps its one promise: it always goes to the right place. That promise is the entire product. A vanity URL that sometimes points somewhere stale is worse than none at all, because you have taught people to trust a link you stopped maintaining.

Disclosure: DevDome publishes this blog and makes the products it mentions. We describe what they do rather than promise results.

Key takeaways

  • A vanity URL on your own domain never expires with a third party service.
  • Name links for the job they do, not for the campaign that is running now.
  • Use 302 for anything you intend to repoint, 301 only for permanent moves.
  • Each link carries its own click count, which page analytics cannot give you.
  • Keep a flat, documented list or you will end up with links nobody can explain.

Sources

  1. MDN: HTTP redirect status codes — the difference between 301, 302, 307 and 308
  2. Google Search Central: redirects and Google Search — how redirects are interpreted for indexing

Links last checked August 24, 2026.

Frequently asked questions

Are vanity URLs better than a shortener like bit.ly?

For links you control, yes, on two counts. Your domain does not depend on another company staying in business or keeping their free tier, and readers can see where a link goes before they click it, which matters for trust. Third party shorteners are still useful when you need a link shorter than your own domain allows.

Will vanity URLs affect my SEO?

Not meaningfully if you use them for outbound and campaign links, which is what they are for. Do not use them for internal navigation between your own pages, because that adds an unnecessary hop between two pages you already control and dilutes nothing usefully.

What prefix should I use?

A short one, used consistently. Something like /go/ for outbound links keeps them clearly separated from your real content paths so you never accidentally collide with a post slug. Pick one and never introduce a second.

Do I need to worry about someone guessing my links?

Vanity URLs are meant to be guessable, that is the point. So do not put anything behind one that should not be public. If you need an unlisted destination, a memorable short URL is the wrong mechanism.

DevDome Team WordPress plugin builders

The DevDome team builds lightweight, performance-first WordPress plugins and free tools for site owners, founders and marketers. We write about the exact problems our plugins solve, in plain language for people who run real sites.