Here's some code I've managed to dig up:
<rule name="Redirect domain.com to www" patternSyntax="ECMAScript" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^inboxlock.com$" />
</conditions>
<action type="Redirect" url="https://www.inboxlock.com/{R:0}" />
</rule>
However, if someone types in www.inboxlock.com it doesn't redirect to https. I need both www.inboxlock.com and domain.com to redirect to https://www.inboxlock.com. Please help. Thanks.