I want to create a script that pass every folder requested in a website as a parameter.
For example, if someone requests:
...that will be redirected to the main index.php and passed as a parameter, getting the same result when requesting
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?