Redirects to HTTPS eventually, but initial redirection is to another HTTP URL

Hello,

I have analysed my website (hosted by yunohost as the default app) with https://observatory.mozilla.org and one error that might be possible to solve is the following one :
“Redirects to HTTPS eventually, but initial redirection is to another HTTP URL”
Yunohost seems to redirect in this order
http://domain.tld
to
http://domain.tld/site
to
https://domain.tld/site

Would it be possible instead to redirect like this
http://domain.tld
to
https://domain.tld
to
https://domain.tld/site
?
Would not that be more secure?

1 Like