title: Htaccess redirect adds filepath to url
body: <p>I'm trying to redirect my .html links to .php. The actual files have been renamed to php as well so my current .html links don't work. I tried this rewrite first which works as in it loads the page but doesn't change the url.</p>
  
  <pre><code>RewriteRule ^(.*)\.html$ $1.php [L]
  </code></pre>
  
  <p>But when I change the rewrite to redirect, it no longer works. It adds the file path to the url.</p>
  
  <pre><code>RewriteRule ^(.*)\.html$ $1.php [L,R=302]
  </code></pre>
  
  <p>For instance: <em>www.domain.com/page.html</em> redirects to <em>www.domain.com/home/username/public_html/page.php</em></p>
  
  <p>I've read many similar questions and tried their solutions but I haven't been able to solve the problem.</p>