title: Wordpress - Pass Query string as slash based URL
body: <p>I am trying to pass a parameter to a wordpress page. I don't want to pass it as a query string. I would like to pass as a slash based url.</p>
  
  <p>Example:</p>
  
  <pre><code>http://localhost/mysite/pagename?user=myname
  </code></pre>
  
  <p>into</p>
  
  <pre><code>http://localhost/mysite/pagename/myname
  </code></pre>
  
  <p>How can I achieve this using my <code>functions.php</code> file in wordpress custom theme?</p>