I want to create a script that pass every folder requested in a website as a parameter.
For example, if someone requests:
www.example.com/foo
...that will be redirected to the main index.php and passed as a parameter, getting the same result when requesting www.example.com/index.php?foo
Please note that the folder requested will be random so i can't predict the folder and put a php script there.
Should i handle all the 404 requests through HTACCESS? Or there's a fancier solution?
parameter=foois better. – DisgruntledGoat May 04 '12 at 01:33