Hi folks! I'm fairly new to the Forem.dev and want to share my sustainable living community - Forest and also express my gratitude towards the Forem core team as well as the really helpful community members like @lee and @akhil who wrote installation tutorials and shared their issues & solutions. Your posts were massively helpful during my setup. Thank you all!
The Forem team did an incredible job with the comprehensive Self-Host guide. The only issue I experienced was with URL redirecting.
For some reason, after installation when I navigate to
domain.com I got an SSL error message. I had to type in
www.domain.com to reach the site. Interestingly, this issue happened on all mobile browsers and all other browsers on the desktop other than Chrome. It was a bit of a head-scratcher for a while and after trying various things like adding an SSL cert to my droplet and modifying the SSL/TLS encryption mode and DNS forwarding & redirects on Cloudflare, I finally fixed it by creating this simple forwarding rule:
If URL matches:
Then the settings are:
Forwarding URL - 301 Permanent Redirect
This is probably not the best fix but it works for me for now. I noticed that some people reported a similar issue in the past so I thought I'd share my solution.