Redirect to HTTPS using KONG API

I tried that solution but did not work for me …
Raised another request for me - HTTPS service gives 308 Permanent Redirect