title: Serving Drupal 7 with built-in PHP 5.4 server
body: <p>I am looking to develop a Drupal 7 site using PHP's built-in server. I have successfully run Drupal without clean urls (e.g. <em>index.php?q=/about/</em>) but clean urls (e.g. <em>/about/</em>) normally rely on mod_rewrite or its equivalent. In the docs I see you can run the PHP server with a router file like so:</p>
  
  <pre><code>php -S localhost:8000 routing.php
  </code></pre>
  
  <p>What should I put in the routing.php to simulate mod_rewrite?</p>