title: How to include a single $ (dollar-sign) within the rewrite rule
body: <p>I'm trying to create a rewrite rule for my .htaccess file. I want to include a single dollar sign within it. It is supposed to be something like this:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^.*$
  RewriteRule ^\$$ "http\:\/\/domain\.com\/something" [R=301,L]
  </code></pre>
  
  <p>The problem is that it doesn't work with a single dollar sign, so if I go to <strong>domain.com/$</strong> I get a 404. It works only with another letter, for example <code>^\$a$</code> - in such case <strong>domain.com/$a</strong> would redirect to <strong>domain.com/something</strong>.</p>
  
  <p>The workaround is to create a new folder, rename it to <strong>$</strong> and put the .htaccess file there, but I would rather avoid creating multiple folders with no content for such purposes. I couldn't find any reference on the Internet (the <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html" rel="nofollow">official Apache documentation for mod_rewrite</a> was not very helpful). I tried using multiple slashes in different combinations but everything failed. Am I missing something or is it just impossible to make it work this way?</p>