title: htaccess rewrite rule accept % character in parameter
body: <p>I'm creating a rewrite rule which should include a parameter which could contain the character <code>%</code>, however when I add it to my rule it breaks my website and every page returns an error:</p>
  
  <pre><code>RewriteRule ^sale/([a-zA-Z0-9_-%]+)$ browse.php?id=$1
  </code></pre>
  
  <p>I wanted the parameter to be able to include characters, digits 0 to 9 and special characters <code>-</code>, <code>_</code> and <code>%</code>.</p>
  
  <p>If I remove the <code>%</code> it works fine but obviously I want that to be accepted as a character for example url :</p>
  
  <p><a href="http://www.websitename.com/sale/test%20parameter" rel="nofollow">http://www.websitename.com/sale/test%20parameter</a></p>