title: Rewrite url from parameter into subdir
body: <p>As search by parameters, I want url display subdir instead parameter like this:</p>
  <p>Here params url : <code>search/?genre=a&amp;pref=b&amp;city=c&amp;sticking&amp;=d</code></p>
  <p>And here is subdir url after convert for display: <code>search/a/b/c/d</code></p>
  <p>In the case search url has less than 4 params, it can be converted to some urls like this:</p>
  <pre><code>search/a/b/c
  search/b/c/d
  search/a
  search/b
  ...
  </code></pre>
  <p>Is there any way to use htaccess to do that?</p>
  <p>I'm using Laravel.</p>
  <p>Thank you for your answer.</p>