Trying to understand how to make the redirect to redirect all http traffic to https on lighttpd webserver using 301.
For instance http://www.example.com should redirect to https://www.example.com and it should work for all sub pages as it's basically rewrite to https.