title: Redirect https://www.subdomain.domain.com/ to https://subdomain.domain.com
body: <p>I want to redirect <a href="https://www.subdomain.domain.com/" rel="nofollow">https://www.subdomain.domain.com/</a> to <a href="https://subdomain.domain.com" rel="nofollow">https://subdomain.domain.com</a>, we have included this in the htaccess file but it doesn't work:</p>
  
  <pre><code>RewriteCond %{HTTPS_HOST} ^www\.([^.]+)\.domian\.com$
  RewriteRule ^(.*)$ https:// %1.domian.com/$1 [L,R]
  </code></pre>