title: htaccess url rewrite with question mark
body: <p>I'm having a problem in <code>.htaccess</code>, specifically on redirection.</p>
  
  <p>I wanted to rewrite this url:</p>
  
  <pre><code>http://www.domain.com/?mod=country
  </code></pre>
  
  <p>to</p>
  
  <pre><code>http://www.domain.com/country
  </code></pre>
  
  <p>I already tried this <code>.htaccess</code> code:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^\?mod=(.*)$ $1
  </code></pre>
  
  <p>I tried working on it without the question mark character and it works fine.
  I have escaped the question mark because it's part of the special characters, but still, I couldn't get it work.</p>
  
  <p>Can you tell what I'm missing?</p>