title: htaccess ReWrite rule removes slash adds www
body: <p>NOTE: additional spaces are to mask that these are "links" in my question. (I am a noob)</p>
  
  <p>I have a site that I want to insure that all traffic to <code>www.playground.com</code> (plus any following like <code>index.html</code> or <code>stuff.php</code>, etc.) is redirected/rewritten to <code>https://playground.com</code> (plus any following if applicable)</p>
  
  <p>I have an htaccess with rewrite like this:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{HTTP_HOST} ^www\.playground\.com
  RewriteRule ^(.*)$ https://playground.com/$1 [R=302,L]
  </code></pre>
  
  <p>This works as expected if I type www. example.com then I redirect to "<code>https://playground.com</code>"</p>
  
  <p>But anytime I add an item to the end of the URL then the redirect is wrong.</p>
  
  <p>I type in <code>www.playground.com/index.html</code> then redirect is:      <code>https://www.playground.comindex.html</code> and errors </p>
  
  <p>I type in playground.com/ index.html then redirect is: same as above and errors</p>
  
  <p>Am I missing something here?</p>