Poorman's URL Shorterning service.
- Just create a
.htmlfile. - Or a folder with
index.html
Now assume you want to redirect your destination(https://google.com) with a slug google. Just name your slug as google.html and replace the content URL_HERE with destination as shown below.
After that navigate to your domain to test it out. Example: your.domain/slug
- My example: l.thiha.dev/google
<head>
<meta http-equiv="refresh" content="0;URL='URL_HERE'" />
</head><head>
<title>TITLE_HERE</title>
<meta name="description" content="DESCRIPTION_HERE" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta
property="og:image"
content="https://metatags.io/images/meta-tags.png"
/>
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta
property="twitter:image"
content="https://metatags.io/images/meta-tags.png"
/>
<!-- Redirection -->
<meta http-equiv="refresh" content="0;URL='URL_HERE'" />
</head>Use Github pages, Netlify, Vercel or equivalent... for easiest setup. But note that depending on the provider, you might hit bandwidth limitations and unexpected charges on some platforms... i hope you know what i mean 😏.
Cloudflare pages for obvious reasons above.
Serve your files directly from your hard drives:
VPS, Nothing beats a dead-simple VPS that you're in control. Just pick a cheapest one,$5or lower.S3or equivalent. Just attach your domain to the bucket.