Redirecting sub domains
I was lucky enough to come up with a name that’s pretty cool - imo- with domain names the price of lunch. So I got two: thecist.com, thecist.dev
I decided to use thecist.dev
as my main domain, with thecist.com
redirecting
users over
So I got to work, created a DNS forwarding rule for thecist.com
And one for my many subdomains
… what?
What do you mean I have to remember and create a new forwarding rule anytime I decide to have a new subdomain?
I’m way too lazy for that
So I spent the better part of my day creating a script that did just that for me
Setup
Here’s how I set it up on squarespace
Note: redirect.thecist.com
could be any domain name hosting the redirect script
Author’s Notes
It’s refreshing seeing my laziness pay off again, although if I’m being honest I might still end up creating a few rules
I’m currently figuring out how to dynamically create ssl certs for my sub domains using Traefik and Squarespace’s DNS
So until then I’m stuck with self signed certs and a really angsty browser