title: Rewrite path to $_GET
body: <p>I want to rewrite this: <code>domain.com/foobar</code> to <code>domain.com?p=foobar</code>.</p>
  
  <p>I don't need subdirectories or multiple variables for this.</p>
  
  <p>I am using nginx, and most other answers where either not what I wanted, or apache.</p>
  
  <p>How can I achieve this?</p>