title: htaccess redirecting not working from gmail link
body: <p>I am having problem if I send one link by email. When people click on non-www link from gmail they redirect to home page of my site but when they click on www added link they reached in the correct page. Here is one example:</p>
  
  <p><a href="http://www.google.com/url?q=http%3A%2F%2Fgreatratedjs.com%2Fcurtnw&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNH_VlMDSssNnC-20Fliz9oT7Ip3ag" rel="nofollow">http://www.google.com/url?q=http%3A%2F%2Fgreatratedjs.com%2Fcurtnw&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNH_VlMDSssNnC-20Fliz9oT7Ip3ag</a> (not working with non-www)</p>
  
  <p><a href="http://www.google.com/url?q=http%3A%2F%2Fwww.greatratedjs.com%2Fcurtnw&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNE-ld9HPvMYZMLh-IVib7insdGRyQ" rel="nofollow">http://www.google.com/url?q=http%3A%2F%2Fwww.greatratedjs.com%2Fcurtnw&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNE-ld9HPvMYZMLh-IVib7insdGRyQ</a> (working fine with www)</p>
  
  <p>My .htaccess redirecting rules:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP_HOST} !^www\.
  RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  </code></pre>
  
  <p>I am using Joomla with community builder. Joomla content are working fine only Community builder's user profile has such problem. I am using sh404sef extension for URL management. Any suggestion ? Thanks in advance :) </p>