/substack-redirect

example redirect for substack custom domain (/ -> www.*)

GNU General Public License v3.0GPL-3.0

substack-redirect

example redirect for substack custom domain (/ -> www.*), using free static site hosting and a _redirects file

_redirects file valid for netlify (docs) and codeberg pages (docs)

quick deploy

you can use this button to automatically fork the repository while connecting it with netlify as a site

Deploy to Netlify

you will want to edit _redirects to reflect your actual URL

(for a maybe less corporate option, you could fork this repository on codeberg to use with codeberg pages)

dns

you will also need to configure DNS so that the root (apex) of your domain is pointing to your static site host

https://docs.netlify.com/domains-https/custom-domains/configure-external-dns/

https://docs.codeberg.org/codeberg-pages/using-custom-domain/