title: Apache Virtual Host Redirect: *.example.com to www.example.com
body: <p>I'm simply trying to redirect any example.com to www.example.com. The redirect currently sends example.com to www.example.com//.</p>
  
  <p>The following code is in my virtual host configuration file:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^suksanvillas\.com$ [NC]
          RewriteRule ^(.*)$ http://www.suksanvillas.com/$1 [R=301,L]
  </code></pre>
  
  <p>This seems to be what all the tutorials suggest, but I'm unable to understand how I'm picking up the extra "/" on the redirect. Any help on even where I might look is appreciated.</p>
  
  <p>PS: Other subdomains, for examples "guides.examples.com" should not be redirected.</p>
  
  <p>Thanks.</p>