Redirects and short links on your own subdomain

How the redirect works, what happens to the query string and how path rules turn a subdomain into a set of short links you can measure.

Reviewed

The simplest thing a name does here is send the visitor somewhere else, and that's one line of setup. What surrounds it, query strings, paths and dead destinations, is what decides whether the link survives the real world.

What the redirect actually does

The root of your name answers with a 301, a permanent redirect, to the URL you've set. Browsers and search engines read that as the definitive move, the destination takes the traffic and, over time, the credit.

The query string travels with it. Anyone landing on yourname.does.software/?ref=poster will reach your destination with ?ref=poster still attached, so the analytics you already have will keep working and campaign tags aren't lost on the way.

Path rules

Beyond the root you can send specific paths to their own destination. The rules are exact matches, there are no wildcards and no prefix matching, so a rule for /cv covers /cv and nothing hanging off it.

  1. Open your subdomain and go to the redirect section.
  2. Add a rule, the path on the left starting with a slash, and the full destination URL on the right.
  3. Save. A change will take up to thirty seconds to reach every server, because the resolutions are cached.
/cv     ->  https://example.com/files/cv.pdf
/talk   ->  https://youtu.be/xxxxxxxxxxx
/book   ->  https://cal.com/you/30min
/       ->  https://example.com      (the root, set separately)

A path with no rule

A path you never mapped won't fall through to the destination, and it won't return a bare web server 404 either. It will land on a page that says the name exists but that address doesn't, with a link to claim a name of your own.

It's a deliberate trade. A wildcard that forwarded /anything to destination/anything would be handy right up to the day the destination reorganises its URLs and every link you printed points at its error page.

The same page covers two other states. If the name only does mail, a visit from the browser will say so instead of failing silently. And if our daily probe finds the destination dead, the visitor will be warned instead of sent into a hole, and you'll get an email.

Short links you can measure

Path rules are a short-link service you control, on a name people can read out loud. Put yourname.does.software/talk on a slide instead of a thirty-character video URL, and you'll be able to change where it points later, which is what a printed link can't do.

Every visit is counted. On any plan you'll see the totals and the last thirty days. Pro adds the breakdown, browser, operating system and device, hour of the day, which site sent the visit, which of your paths was used and the campaign tags that arrived in the query string.

The limits

The path rules on each subdomain go with the plan, two on the free plan, five during the trial, ten on the Starter plan and thirty on the Pro plan. The root destination is set apart and doesn't count towards that limit.

If you switch the name to serving a static site, the root redirect and every path rule will stop serving while the site is on. They aren't deleted, and turning the site off will bring them straight back.

One name, a 301 that keeps your query string and a handful of exact paths you can repoint later. If you need a path to match everything hanging off it, this isn't the tool.

Keep reading

Free website hosting: alternatives to GitHub PagesGitHub Pages, Netlify, Vercel and Cloudflare Pages compared. The limits of each free plan, what they will not let you do and how to put your own name on the site.How to make an online CV under your own nameTurn your CV into a web page that reads well on a phone, prints as a PDF and lives at yourname.does.software. With an HTML template to start from.Free .es domain? What actually existsThere is no free .es domain. What is behind the offers that promise one, what to check before paying for a .es and which free options you have for a site with your name.Free domains for students: the options that actually existGitHub Student Pack, free subdomains and does.software. What is free for good, what is free for the first year only and what each option asks of you.Where to publish your final-year project under your own namePut your final project online for the presentation and for your CV. What works for a static site, what to do if it has a backend and how to do it as a group.Junior developer portfolio: what to put in and where to publish itWhat people hiring a junior look at, which projects to include and which to drop, and how to publish your portfolio under your own name so you get found.How to stand out as a junior developer in SpainWhat companies in Spain check before calling a junior, where to look for your first openings and what to do so your application doesn't get lost among a hundred.A link to your CV with your name (and see when it's opened)Put yourname.does.software/cv on your applications. Update your CV without sending it again and see how often it gets opened, even from which application.Free professional email with your nameAn address with your name for your CV, clients and applications, without buying a domain. How to receive for free, how to send from it with Gmail and which plan you need.Linktree or a subdomain with your name: which one suits youLinktree gives you a page of buttons, a subdomain gives you a name of your own with email and paths. What each does, when to pick which and how to use both.The best alternatives to buying a domainFree subdomains, your platform's name, a links page or a well-made profile. Which alternative to buying a domain fits what you actually need.Publish your site from GitHub or GitLab without buying a domainImport a repository, serve it on your own name and redeploy on every push. No build server, no DNS and HTTPS included.Forwarding or mailbox: setting up email on your subdomainHow to set up a forward or a mailbox on your subdomain, step by step. What each one can do, its limits and which one suits you.Free subdomain or buy a domain?What you give up, what you save and the cases where a name under does.software is the wrong answer.Freenom has shut down: alternatives for a free domainWhat happened to Freenom's free .tk, .ml and .ga, what options are left for a free domain or subdomain and how not to lose your name again.
Back to the questions