Folder as parameter in PHP
<p>I want to create a script that pass every folder requested in a website as a parameter.</p>

<p>For example, if someone requests:</p>

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

<p>...that will be redirected to the main index.php and passed as a parameter, getting the same result when requesting <code>www.example.com/index.php?foo</code></p>

<p>Please note that the folder requested will be random so i can't predict the folder and put a php script there.</p>

<p>Should i handle all the 404 requests through HTACCESS? <strong>Or there's a fancier solution?</strong></p>
