htaccess redirects with Hugo

I’m using Hugo quite a while for generating my website. Hugo creates static html files from markdown and more, which can be hosted nearly anywhere. For aliases and similars Hugo is using redirects through HTML, basically it sets an header-tag like <meta http-equiv="refresh" content="0; url=https://tilseiffert.de/linktree/">. But I do not fully like this approach. It’s fast, but it is not the fastest. A faster way would be a HTTP-redirect. But how we could achive this?...

November 2022 · 4 min · Tilmann Seiffert