title: Zend framework's getRequest()->getQuery() won't bring query string on localhost
body: <p>I have the following code, which works fine on live site, but not on localhost.</p>
  
  <pre><code>$status = $this-&gt;getRequest()-&gt;getQuery('status');
  </code></pre>
  
  <p>I have a URL like this:</p>
  
  <pre><code>http://localhost:888//questions/ask?status=10
  </code></pre>
  
  <p>I printed the value of status, which is always nil. I am new to Zend framework and could not find a solution to this on net, looks strange to me. Any thoughts?
  Thanks.</p>
  
  <p><strong>[FIXED]</strong></p>
  
  <p>I had wrong RewriteRule that caused the problem. There was an unwanted '?' after <code>index.php</code>  in RewriteRule line. It was my mistake I added this, because other frameworks like CodeIgniter user '?' in RewriteRules. The corrected RewriteRule line is:</p>
  
  <pre><code>RewriteRule ^(.*)$ /index.php/$1 [L]
  </code></pre>
  
  <p>I wonder if I can choose this as accepted answer.. :-)</p>