I have a SSL set up on <a href="http://www.mydomain.com">www.mydomain.com</a><br><br>How can I redirect traffic on <a href="http://mydomain.com">mydomain.com</a> to <a href="https://www.mydomain.com">https://www.mydomain.com</a>?<br>
<br>I&#39;ve tried the following<br><br>    server {<br>        listen 443 default;<br>        server_name _;<br>        rewrite ^/(.*) <a href="https://www.mydomain.com/$1">https://www.mydomain.com/$1</a> permanent;<br>    }<br>
<br>    server {<br>        listen 443 default;<br>        rewrite ^ <a href="https://www.mydomain.com">https://www.mydomain.com</a>$request_uri?;<br>    }<br><br>both not working..<br><br>thank&#39;s before<br>