'openliteserver: https redirect not working

I am following the tutorial outlined here to setup https redirect and when I visit the normal site I hit the litespeed server page you get when you first spin up the droplet. When you prefix the url with https:// it goes to the proper wordpress landing page. This is the current rewrite rule for the domain.

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R,L]

(example is not the actual domain)

What am I missing



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source