title: Prevent google from indexing my pages as ssl
body: <p>I have my own domain (such as mysite.com) but im on a shared server, thus my ssl is shared too. So if i need a page to be on SSL i have to access it by using my host SSL URL (something like <a href="https://myhostssl.com/~mysite-com/whateverpage.html" rel="nofollow">https://myhostssl.com/~mysite-com/whateverpage.html</a>). The problem is that every document on my root directory becomes SSL if accessed that way and Google is indexing many of my pages with the SSL URL. And since the SSL domain is different than mine, it interprets them as if they were from a completely different site which has a negative effect on my Google rank performance. </p>
  
  <p>So i wonder if its possible to block access to those pages if accessed from the SSL URL, with an htaccess or a robots.txt file and how to do it. I tried with this:</p>
  
  <pre><code>RewriteCond %{HTTPS}=on
  RewriteRule ^(.*)$ http://www.mysite.com/no-ssl/$1 [R=301,L]
  </code></pre>
  
  <p>With that i was trying to prevent SSL access to all the documents in the no-ssl directory but it didnt work. I guess because the SSL URL is different.</p>
  
  <p>Could you please give me a hint?</p>
  
  <p>Thank you.</p>