title: Pass Query string to cake style URL in cakephp and give ext of HTML
body: <p><strong>What I am trying to achieve:</strong></p>
  
  <p>When user passes this:</p>
  
  <pre><code>/results?val=real&amp;x=1&amp;y=0
  </code></pre>
  
  <p>it should show:</p>
  
  <pre><code>/results/real.html?x=1&amp;y=0
  </code></pre>
  
  <p>and from Action I should still be able to access <code>$this-&gt;request-&gt;query['val']</code> which should be equal to <code>real</code></p>
  
  <p><strong>What I have done so far?</strong></p>
  
  <p>I am using CakePHP 2.4</p>
  
  <pre><code>Router::parseExtensions('html');
  
  Router::connect('/results/:val', 
              array('controller'=&gt;'Post','action'=&gt;'results',
  '?' =&gt; array('val'=&gt;'[A-Za-z0-9]-_ +','x'=&gt;'[0-9]+','y'=&gt;'[0-9]+')));
  </code></pre>