ShortGo
FeaturesPricing BlogHelpLog in
All articles
Guides8 min read

What Is a URL Shortener? How Short Links Work

Learn what a URL shortener does, how short links redirect, when to use 301 vs 302 redirects, and why branded short links on your own domain earn more trust.

A URL shortener turns a long, messy web address into a short link that is easy to read, type and share. Behind that simple job sits a small piece of infrastructure: a redirect service that can also measure clicks, route visitors and keep links working after the destination changes. This guide explains how short links work, which redirect codes to use, and why a branded short link on your own domain is worth setting up.

What is a URL shortener?

A URL shortener is a service that gives a long web address a short alias. When someone opens the short link, the service looks up the alias and sends the visitor to the original destination with an HTTP redirect. The extra hop takes a moment, and the visitor rarely notices it.

Long URLs show up everywhere: product pages with tracking parameters, shared documents with random IDs, search results with dozens of query values. They wrap awkwardly in emails, get cut off in text messages and are nearly impossible to type from a poster. A short link solves the presentation problem, and a good link management platform solves several others at the same time.

Every short link has two parts:

  • The domain. This is either a shared shortener domain or your own branded domain, such as go.yourbrand.com.
  • The slug. This is the part after the slash. It can be random, like /x7Kq2, or a custom alias you choose, like /spring-sale.

The combination of domain and slug must be unique. That is why a custom alias that is already taken on one domain may still be available on another.

When you create a short link, the shortener stores a record that maps the slug to a destination URL, along with any rules you attach. When a visitor opens the link, a sequence of steps runs in a fraction of a second:

  1. The browser requests go.yourbrand.com/spring-sale.
  2. The shortener finds the record for that domain and slug.
  3. It checks any rules on the link, such as a password, an expiry date or targeting conditions.
  4. It records the click with details like time, country, device and referrer.
  5. It answers with a redirect status code and the destination URL, and the browser follows it.

Because every click passes through this step, the shortener can do much more than shorten. It can count, filter, route and protect, all without changing the destination page.

301 vs 302 redirects: choosing the right code

The redirect is an HTTP response that tells the browser where to go next. The status code tells the browser, and any search engine or crawler, how to treat that move. Four codes cover nearly every case:

Status code Meaning Browser caching Typical use
301 Moved permanently Often cached aggressively Links that will never change
302 Found (temporary) Not cached by default Campaign links you may edit later
307 Temporary, method preserved Not cached by default Technical or API use cases
308 Permanent, method preserved Often cached aggressively Permanent moves for non-GET requests

When to use a 301

A 301 says the move is permanent. Browsers may remember it and skip the shortener on later visits, which means later clicks may not be counted and later edits may not reach visitors who already followed the link. Use a 301 for links whose destination will genuinely never change, such as a link to a permanent documentation page.

When to use a 302

A 302 says the move is temporary, so browsers check with the shortener on each visit. That keeps every click measurable and makes destination edits take effect immediately. For marketing links, where landing pages change and campaigns end, a temporary redirect is usually the safer default.

What about 307 and 308?

These work like 302 and 301, but they require the browser to keep the original request method. That matters for forms and API calls that send data, and rarely for links shared with people. If you are not sure, you likely do not need them.

Shorter links look tidier, but the real benefits are practical.

A short link is a pointer, so you can update where it points at any time. If a landing page moves, a product sells out or you spot a typo in the URL, you edit the link once and every place it was shared keeps working. That includes emails already sent and QR codes already printed.

Measurement without extra setup

Every click goes through the shortener, so it can record where clicks come from: country, device, browser, referrer and time. You get one consistent view of performance across channels, even for destinations you do not control, such as a marketplace listing or a video page. Our guide to link analytics metrics explains how to read those numbers.

Control and safety

Short links can carry rules. You can set an expiry date, a click limit, a password or a block on bots. You decide how long a link lives and who can use it, without touching the destination site.

Generic short domains are convenient, but many people hesitate before clicking a link from a domain they do not recognize. A branded short link such as go.yourbrand.com/webinar shows who is behind it before anyone clicks.

Branded links help in several ways:

  • Trust. Readers can see the link belongs to you, which matters in email, SMS and social posts.
  • Recall. A meaningful alias is easier to remember and type from print or a podcast mention.
  • Consistency. Every link you share repeats your brand name instead of someone else’s.
  • Portability. The domain is yours, so your links are tied to your brand rather than to a shared domain you do not control.

A subdomain such as go. or link. on your main domain is usually the simplest choice. You do not need to buy anything new, your main website stays untouched, and setup takes a couple of DNS records. Our guide to custom domains for short links walks through the full setup.

What to look for in a URL shortener

Not every shortener is built for marketing or team use. Use this checklist when you compare options:

  1. Custom domains with automatic HTTPS.
  2. Editable destinations, so links stay useful over time.
  3. Choice of redirect type, including 301 and 302.
  4. Analytics that go beyond a raw click count: unique clicks, location, device, referrer and bot filtering.
  5. Targeting to send different visitors to different destinations by country, device or language.
  6. Dynamic QR codes backed by short links, so printed codes can be updated and tracked.
  7. Team features with roles, so colleagues can collaborate without sharing passwords.
  8. An API for creating links automatically from your own tools.
  9. Abuse protection, so the platform’s domains keep a good reputation with email and social filters.

ShortGo is a URL shortener and link management platform for short links, QR codes and link-in-bio pages. Here is the basic workflow.

  1. Create an account. Sign up for free to keep and track your links. You may be able to shorten a link from the homepage without an account, but anonymous links expire after a set number of days.
  2. Add your domain (optional). Go to Domains, then Add domain, and enter a host such as go.yourbrand.com. Add the TXT record shown at _shortgo.<your-host> to verify ownership, then add the A/AAAA or CNAME record shown on the domain page. ShortGo issues the HTTPS certificate automatically once DNS is in place.
  3. Create the link. Open Links, then New link, and paste the destination URL. Pick a domain and type a custom alias, or leave the alias blank for a random slug.
  4. Choose the redirect type. A direct redirect uses a 301, 302, 307 or 308 status code. You can also choose a frame, a branded splash page, or a CTA overlay shown on top of the destination. Some websites block being shown in frames, so test frame and overlay links before sharing.
  5. Add options if needed. Apply a UTM template, turn on parameter forwarding, set an expiration date or click limit, add a password, or turn on bot blocking.
  6. Share and measure. Copy the link or download its QR code. Clicks appear in the link’s analytics with country, device, browser, referrer and traffic source, and detected bots are excluded from totals by default.

Custom domains and some analytics details depend on your plan. See pricing for what each plan includes.

Putting it together

Once your links live in one place, a short link becomes a small, flexible routing layer between your audience and your content. From there you can send visitors from different countries to localized pages, compare destinations with an A/B rotator, attach retargeting pixels or build a link-in-bio page. A sensible next step is our geo-targeting guide, which shows how to route visitors by location without creating separate links.

Frequently asked questions

A redirect does not make the destination page rank worse. Short links are mostly used where search rankings do not apply, such as social posts, email and print, and for links you never plan to change, a 301 is the standard choice.

A 302 is usually the safer choice for marketing links, because browsers do not cache it by default, so every click is counted and destination edits take effect right away. Save 301 for links whose destination will never change.

Yes. In ShortGo every short link is dynamic, so you can edit the destination at any time and the same short link, including any printed QR code that uses it, keeps working.

Do I need my own domain to use ShortGo?

No. You can start on a default ShortGo domain and add a custom domain later when you are ready to brand your links.

What is the difference between a random slug and a custom alias?

A random slug is generated for you and keeps links short. A custom alias such as /spring-sale is one you choose, which makes the link easier to remember, read aloud and trust.

Share this article
X LinkedIn Facebook

Put these ideas to work

Create branded links, QR codes and bio pages in seconds.

Start for free

We use essential cookies to run this site. Learn more