title: Remove %20 Spaces from URL and product.php?name=$1
body: <p>Would appreciate some assistance removing spaces from my URLs; and the CMS generates a php extension to I'd like help removed. 
  Can not change these in the CMS, things are to dynamic. So I think it has to be htaccess.</p>
  
  <p>I tried this: <a href="https://stackoverflow.com/questions/44733073/how-to-remove-20-from-url-with-htaccess">How to remove %20 from url with .htaccess</a>
  Which worked to remove spaces, but it did not redirect my content. </p>
  
  <p>I also got this to remove product.php?name=$</p>
  
  <pre><code>     RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule ^(.*)$ product.php?name=$1 [L]
  </code></pre>
  
  <p>But that won't redirect anything.</p>
  
  <p>They don't work together.</p>
  
  <p>Currently have this at the top of my htaccess:</p>
  
  <pre><code>     &lt;IfModule mod_expires.c&gt;
       RewriteEngine on
       RewriteBase /
  </code></pre>
  
  <p>So Basically: </p>
  
  <pre><code>     www.randomsite.com/product.php?name=One%20Two%20Three
       needs to be:
       www.randomsite.com/One-Two-Three 
       or even...
       www.randomsite.com/One-Two-Three/
  </code></pre>
  
  <p>And hopefully handle redirects, or maybe I need to write redirects after all this. Idk.
  Thank you!</p>