How URL redirects work
A redirect is a short instruction from a server: “what you asked for is somewhere else.” Short links are built on it.
The request, step by step
- You open
vyly.link/offer. Your browser asks the server for that address. - The server finds where
offerpoints. - It replies with a status code (such as 301 or 302) and a
Locationheader with the new URL. - Your browser requests the new URL and shows the page.
The codes that matter
| Code | Meaning | Use it when |
|---|---|---|
| 301 | Moved permanently | The destination will not change and you want search engines to treat it as the new address. |
| 302 | Found (temporary) | The destination may change, for example in campaigns. |
| 307 | Temporary, keeps the method | You need the HTTP method (such as POST) preserved. |
| 308 | Permanent, keeps the method | Permanent move that must preserve the method. |
What it means for SEO
A 301 tells search engines the move is permanent; a 302 says it is temporary. For links shared on social media, the difference matters little to people, but for pages you want search engines to index at the new address, use a permanent redirect. On Vyly, 301 redirects are available from the Core plan; the default is a temporary redirect so you can edit destinations freely.
Redirect chains
Each extra hop adds delay, and long chains can lose clicks or stop being followed. Keep the path short: short link, then destination. If your destination also redirects, update the short link to point to the final URL.
How to check a redirect
In a terminal, curl -I https://vyly.link/offer shows the status code and the Location header without downloading the page. Your browser’s network panel shows the same.
To learn more about short links in general, start with what is a URL shortener.
Frequently asked questions
Should a short link use 301 or 302?
Use 302 when you may change the destination or run a campaign. Use 301 when the move is permanent and you want search engines to follow it.
Do redirects slow down a page?
Slightly, by the time of one extra request. Avoid chains of several redirects.