Most short links are rented. You paste a long address into a shortening service, get back a short one on their domain, and that link works for exactly as long as the service decides to keep it alive. If the service closes, changes its terms or drops your link, every printed card, post and email carrying it breaks at once.

There is another way to get the same result: put the short link on a domain you already own. A short path on your domain, such as /guide, can redirect to any long destination, and the rule that makes it happen is a single line in a configuration file on your own hosting. Ovatly's Link Shortener is honest about what it is: not a shortening service, but a redirect rule generator that writes that configuration file for you. This guide walks through creating your first short link with it, from the row you type to the live redirect you test.

Contents

  • Quick answer
  • What a short link on your own domain actually is
  • 301 or 302: choose the status first
  • How to create a short link, step by step
  • Worked example: one permanent short link
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

To create a short link with your own domain: open the Link Shortener, optionally type your domain to preview how the links will look, then add one row per link with a short path, the full destination and a status of 301 or 302. Choose the configuration format that matches your hosting, copy or download the generated block, place it on your site as the file header instructs, adding to an existing file rather than replacing it, and test the short path in your browser.

A hosted shortening service hosts the redirect for you: their server receives the visit to the short link and sends the visitor on to the destination. The Link Shortener does the other half of that job. It writes the configuration file that makes short paths on a domain you own jump to their long destinations: a _redirects file for Cloudflare or Netlify, an .htaccess file for Apache, or Nginx rewrite rules.

The short path lives on your domain, so the destination can be any full URL, including another site entirely, or a path on the same site. You keep full control, and nothing depends on a third-party service staying alive. Nothing here is hosted by Ovatly: there is no database, no account and no click tracking, and no short link works until the generated file is live on your own hosting.

301 or 302: choose the status first

Every row carries a status code, and the choice is part of the link's meaning. Use 301 for links you intend to keep forever: it marks the redirect as permanent, and search engines transfer ranking signals through it. Use 302 for seasonal or experimental links you will change or remove, because it marks the redirect as temporary.

Decide before you generate, because the status ends up inside the rule line itself. A printed link you expect to repoint next season should start life as a 302, not be converted later.

  1. Open the Link Shortener and, optionally, type your domain. The preview shows how your short links will look, and the preview is the only thing the domain is used for.
  2. Add one row per short link: the short path (like /guide), the full destination, and 301 for permanent or 302 for temporary.
  3. Choose the configuration format that matches your hosting: _redirects, .htaccess, or Nginx rewrite rules.
  4. Copy or download the generated block.
  5. Place it on your site as the file header instructs. If your host already has a _redirects or .htaccess file, add the new lines to it rather than replacing the file.
  6. Test a short path in your browser to confirm it lands on the destination.

Say you want your domain's /guide path to send visitors to a long guide. The row is: short path /guide, destination https://example.com/long-guide, status 301.

In Cloudflare format, the generated _redirects file contains this rule line:

/guide https://example.com/long-guide 301

Save that file in the root of a Cloudflare Pages or Netlify site, and visiting your domain's /guide path sends visitors to the long guide. The same destination can also carry a second short path: two short paths pointing to one destination is common, with a short one for print and a descriptive one for social. The reverse is blocked, because one short path can only have one destination, and the generator flags duplicates.

Limitations and honest tradeoffs

The honest limit is in the tool's own description: nothing is hosted for you. The generated file does nothing until it is live on your hosting, so a link you generated but never placed is not a link at all. There is also no click tracking in a redirect file. Your hosting or analytics platform sees each visit to the short path, so counting happens there, for example as page views of /guide.

Hosting shape matters too. If your site is on WordPress or another CMS and runs on Apache, the .htaccess format usually works as is. On managed platforms that block config files, use the platform's own redirect manager and copy the same from and to pairs into it.

Common mistakes

  • Replacing the existing file. Dropping a fresh _redirects or .htaccess over the old one deletes every rule already in it. Add your new lines to the file that is there.
  • Choosing 301 for a seasonal link. A permanent status on a link you plan to repoint or retire misleads search engines and browsers. Seasonal and experimental links are 302.
  • Expecting click statistics from the file. A redirect rule counts nothing. Measure visits to the short path in your hosting or analytics platform.
  • Skipping the test. The last step exists because a misplaced file or a typo in the destination only shows up when someone visits the path. Test it yourself first.
  • Giving one path two destinations. One short path can only point to one place. The generator flags duplicate paths; resolve them instead of working around them.

FAQs

Why does Ovatly not just shorten the link for me? A hosted shortener needs servers, a database, abuse handling and a promise to keep every link alive for years. Rather than pretend to offer that, this tool gives you the same result on infrastructure you already own and control.

Will I get click statistics? Not from the redirect file itself. Your hosting or analytics platform sees each visit to the short path, so count them there, for example as page views of /guide.

What if my site is on WordPress or another CMS? If it runs on Apache, the .htaccess format usually works as is. On managed platforms that block config files, use the platform's own redirect manager and copy the same from and to pairs into it.

Can two short paths point to the same destination? Yes, that is common: a short one for print and a descriptive one for social. The reverse is blocked. One short path can only have one destination, and the generator flags duplicates.

Should I choose 301 or 302? Use 301 for links you intend to keep forever, because search engines transfer ranking signals through it. Use 302 for seasonal or experimental links you will change or remove.

Conclusion

A short link on your own domain is one line in a file you control: a short path, a destination and a status chosen on purpose. The Link Shortener writes that line in the format your hosting expects, and the link then lives on infrastructure you own, so it cannot die because a third-party service closed. The destination does not have to be permanent either: our companion guide on updating the destination behind a short link shows how to repoint a path by editing that one line. For more guides in this series, see our URL and Link Tools guides.