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)
you can use this button to automatically fork the repository while connecting it with netlify as a site
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)
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/