How can I redirect http visit on some sites to https?

I’m using RB450G with RouterOS v6.30.4.

These days I’m trying to redirect http visits for some websites (such as stackoverflow.com/google.com etc ) to https, it seems webproxy is the best way.
But I don’t know how to configurate webproxy redirect-to to “https:{sourceurl}” form. Does the webproxy support this? and how to ? If not ,how should I do to turn visits to https?

Wish reply,thanks.

Finally I solve it by editing the error.html file, adding a redirect javascript.