title: Search page in subdirectory with extra parameter in friendly URL (htaccess)
body: <p>My htaccess is currently</p>
  
  <pre><code># rewrite engine on and setting up base
  RewriteEngine On
  RewriteBase /leffa
  
  # replace + with _
  RewriteRule ^(.+)\+(.+)$ $1-$2 [R=301]
  
  # external redirect from action URL to pretty one
  RewriteCond %{THE_REQUEST} /index(?:\.php)?\?q=([^\s&amp;]+) [NC]
  RewriteRule ^ %1? [R=302,L,NE]
  
  # internal forward from pretty URL to actual URL
  RewriteRule ^([^/.]+)/?$ index.php?q=$1 [L,QSA,NC]
  </code></pre>
  
  <p>Which produces correct rewrite in <a href="http://www.rollemaa.org/leffat" rel="nofollow">here</a> when you click on any of the movie titles. However, I have an extra parameter ?kuvauksesta=1 when you are searching from description also rather than the title (I have removed the checkbox because it currently doesn't work).</p>
  
  <p>How to make this rewrite work with second parameter in search query? typing manually <a href="http://www.rollemaa.org/leffa/pelottava?kuvauksesta=1" rel="nofollow">http://www.rollemaa.org/leffa/pelottava?kuvauksesta=1</a> does work, but with checkbox input it just removes the second parameter, try and see: <a href="http://www.rollemaa.org//leffa/index.php?q=pelottava&amp;kuvauksesta=1" rel="nofollow">http://www.rollemaa.org//leffa/index.php?q=pelottava&amp;kuvauksesta=1</a></p>
  
  <p>How to make the second parameter to say in the url so it's clean and searchable?</p>