I have a jekyll website hosted on GitHub pages.
I want to create short links that point elsewhere. For example example.com/l
can redirect to linkedin.com/example
.
Is there a way to achieve this on a statically hosted site without messing with my domain registrar?
You can use a <meta>
tag added to the <head>
section of the page.
<meta http-equiv="Refresh" content="0; url='https://your.redirect.here'" />
This will redirect the browser on page load.