In this case, add two forwarding policies. One is HTTP to HTTP forwarding, and the other is HTTPS to HTTPS forwarding.
For details about how to configure a forwarding rule, see How Do I Solve the Problem of Excessive Redirection Times?