Redirects do not work if port 80 is not enabled in ufw?
I’ve changed my ufw settings to only allow port 22 for ssh and 443 for https.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.