title: need to escape # (hash/pound) character in .htaccess rewrite rule
body: <p>The question is fairly simple but I was not able to find an answer for hours now.</p>
  
  <p>What I need to do is:</p>
  
  <pre><code>RewriteRule ([^#])#(.*) $1\%23$2
  </code></pre>
  
  <p>Which basically means I want to url escape the freaking hash sign which comes to me from an external codepiece.</p>
  
  <p>backslash (<code>\</code>) does not work to escape this sign... and please don't suggest using <code>%23</code> instead <code>#</code> because it does not work as well.</p>
  
  <p>(<code>%2</code>3 does not match a <code>#</code> because it simply is not <code>== %23</code>)</p>