Mask a URL with PHP
<p>I've done some research regarding masking URL's but I'm having some difficulty understanding how it works.  Here is what I am trying to do.</p>

<p>I have a site:</p>

<pre><code>www.example.com
</code></pre>

<p>Sometimes it has directories and get variables that need to be passed.</p>

<pre><code>www.example.com/directory/file.php?var=1
</code></pre>

<p>I'd like to create a custom name for the above are of my site so the user can hit that without remembering the get variables and long directory.</p>

<pre><code>www.example.com/customname/file
</code></pre>

<p>There will also be several different custom names that I will need to produce.</p>

<pre><code>www.example.com/customname2/file
www.example.com/customname3/file
etc...
</code></pre>

<p>Not sure where I should start here but my tests that I have run have all failed giving me an error saying that the "customname" directory does not exist.  </p>

<p>What options do I have here?</p>
