title: How to change search query string to permalink in Wordpress?
body: <p>I'm having a problem with my Wordpress site when using search. This is probably due to qTranslate plugin.</p>
  
  <p>So I have permalink turned on and when I use search field, I get URL with ?s= query string like this:</p>
  
  <pre><code>www.mydomain.com/en/?s=test
  </code></pre>
  
  <p>The above URL works just fine but if I have many search results that show pagination buttons, links on those buttons cause 404 errors. Link for second page has the following URL:</p>
  
  <pre><code>www.mydomain.com/en/page/2/?s=test
  </code></pre>
  
  <p>This throws 404 error but if I manually modify the URL like this:</p>
  
  <pre><code>www.mydomain.com/en/search/test/page/2/
  </code></pre>
  
  <p>then the pagination works.</p>
  
  <p>So I would like to force Wordpress to use /search/ permalink instead of /?s= query string but not sure how to do that.</p>