title: rewrite url htaccess cakephp paginator
body: <pre><code>RewriteRule result/([^\.]+) /job/search/result?k=$1 [L]
  </code></pre>
  
  <p>i have this code working well with urls like this</p>
  
  <pre><code>www.example.com/job/search/result/keyword
  </code></pre>
  
  <p>will give me the result of "keyword"</p>
  
  <p>but the problem is that cakephp paginator is generating a link
  like this </p>
  
  <p>result/page:2?k=keyword </p>
  
  <p>how can i write a rule for that
  to fix the problem, i tried this but without a luck</p>
  
  <pre><code>RewriteRule result\/page:([0-9]+)\?k=([^\.]+) /job/search/result/page:$1?k=$2   [L]
  </code></pre>
  
  <p>so my new rules are</p>
  
  <pre><code>RewriteRule result\/page:([0-9]+)\?k=([^\.]+) /job/search/result/page:$1?k=$2   [L]
  RewriteRule result/([^\.]+) /job/search/result?k=$1 [L]
  </code></pre>