title: How do I regex htaccess for my search query
body: <p>Example my URL</p>
  
  <p><code>http://domain.com/search.php?s=search&amp;w=state&amp;t=town&amp;c=category&amp;p=1</code></p>
  
  <ul>
  <li>s = search keyword </li>
  <li>w = region </li>
  <li>t = town </li>
  <li>c = category </li>
  <li>p = paging</li>
  </ul>
  
  <p>What I have done for now in my <code>.htaccess</code> is</p>
  
  <pre><code>RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/$ /search.php?s=$1&amp;w=$2&amp;t=$3&amp;c=$4&amp;p=$5 [L]
  </code></pre>
  
  <p>And the URL will be</p>
  
  <p><code>http://domain.com/search/keyword/region/town/category/1/</code></p>
  
  <p>Question</p>
  
  <p>How do I rewrite my .htaccess to make my URL can be global query. </p>
  
  <p>Example <code>s=bmw+5+series&amp;w=&amp;t=&amp;c=</code></p>
  
  <p><code>http://domain.com/search/bmw-5-siries/</code></p>
  
  <p>Example <code>s=bmw+5+series&amp;w=&amp;t=&amp;c=car</code></p>
  
  <p><code>http://domain.com/search/car/bmw-5-siries/</code></p>
  
  <p>Example <code>s=bmw+5+series&amp;w=manchester&amp;t=&amp;c=car</code></p>
  
  <p><code>http://domain.com/search/manchester/car/bmw-5-siries/</code></p>
  
  <p>or other output as long in the queries term.`</p>
  
  <p>This is possible?</p>