How to Redirect Non www to www with SSL/Https

Hello Friends,

below code is used for redirect non www website to www.