How to redirect root domain to subdomain with https
<p>My setup are, <br />
- @ redicrect to <code>www.example.com</code><br />
- <code>www.example.com</code> CNAME to openshift account.<br />
- https redirection is handled in the code.</p>

<p>Working:<br />
<code>example.com</code> -> <code>https://www.example.com</code><br />
<code>www.example.com</code> -> <code>https://www.example.com</code></p>

<p>Not Working<br />
<code>https://example.com</code> -> "This site can’t be reached"<br />
- I expect to redirect this to <code>https://www.example.com</code></p>

<p>Any idea how to do this?</p>