title: $_GET and URL Rewriting for PHP
body: <p>How does URL rewriting affect the <code>$_GET</code> parameter for PHP?</p>
  
  <p>Say I have a URL like <code>http://example.com/index.php?p=contact</code> and I use <code>$_GET['p']</code> to tell <code>index.php</code> to serve the contact page. If I use a rewrite rule that converts the URL to <code>http://example.com/contact</code>, will <code>$_GET['p']</code> still work as expected?</p>
  
  <p>If it does, could you elaborate on why it works? If not, what strategies could be used to solve the problem so that the page will work both with and without the rewrite?</p>