title: How does RewriteBase work in .htaccess
body: <p>I have seen this in a few <code>.htaccess</code> examples</p>
  
  <pre><code>RewriteBase /
  </code></pre>
  
  <p>It appears to be somewhat similar in functionality to the <code>&lt;base href=""&gt;</code> of HTML. </p>
  
  <p>I believe it may automatically prepend its value to the beginning of <code>RewriteRule</code> statements (possibly ones without a leading slash)?</p>
  
  <p>I could not get it to work properly. I think it's use could come in very handy for site portability, as I often have a development server which is different to a production one. My current method leaves me deleting portions out of my <code>RewriteRule</code> statements.</p>
  
  <p>Can anyone explain to me briefly how to implement it?</p>
  
  <p>Thanks</p>