If you run a local DNS server on your network already (such as a Pi-hole), you can use these instructions to set up an HTTPS redirect for certain sites/domains to other ones. This is particularly useful, for instance, if you don't want to visit Twitter anymore but still occasionally want to automatically view content on it through Nitter.
This can be more easily accomplished via browser extensions, but this method is an option to get it on all devices on the network, as long as you trust the cert.
Is this a bad idea security wise? Probably! But if you want to try it, here you go: