title: .htaccess Redirect Subfolder to New Domain
body: <p>My client wants to use theirdomain.com/billpay to mask the URL given to us by the company who processes their online payments. I understand that it can be done via DNS if it's a subdomain (ie billpay.theirdomain.com), but I'm not sure how to go about it when it's an actual appendage of the main URL as stated above. I'm assuming this can be done via the .htaccess file. This is the code I have now, but I get a 500 internal server error:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /croutlet/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME}/index.html !-f
  RewriteCond %{REQUEST_FILENAME}/index.php !-f
  RewriteRule . index.php [L]
  &lt;/IfModule&gt;
  
  //301 Redirect Entire Directory
  RedirectMatch 301 /billpay(.*) /http://www.google.com/$1
  </code></pre>