Sorry if this is already answered, I have a strange problem. I have redirected from www to non-www. If you do http://www.example.com then it redirects to https://example.com, which seems to work. I have changed all database URL from http to https as well (from Better Search Replace plugin). All seems working.
You are making redirection from “www” to “non www” & at the same time, you are implementing it “HTTP” to “HTTPS”. First of all I would like to make it clear that “HTTP” to “HTTPS” is not a redirection. “HTTPS” is a secured layer of a website & not a type of redirection. You need to implement every url & image with “HTTPS” if you want that only “HTTPS” version should be opened.