Loop fixed, root not set. Remove scheme.
Revert to greedy match RegExp
Try this regexp pattern
Defined static url.redirect
Left an extra ?
Readd Scheme == http
Redirect moved to single scheme block
Catpture and rewrite both http and https
Capture in two groups to ignore present http/s
Add individual redirect for "/"
Lighttpd: simple redirects

1. http => https for edhaker.info
3. checacorp => https://edhaker.info/files/
Line Normalization