title: Will using HTTP and HTTPS on the same domain affect SEO
body: <p>Will using both protocols on the same domain, serving the same website, make it indexed twice by search engines, and considered duplicate content?</p>
  
  <p>If that so, what is the best way to avoid this negative effect in SEO.  Should I make https on another subdomain like <code>https://ssl.example.com</code> instead of <code>https://www.example.com</code> with a different docroot? Or is it good enough to make the necessary 301 redirects from https to http  for non-secure content and vice versa on the same docroot? What is the best practice here?</p>