I have site with these files and foldes:
/index.php ( that include php files contained in folder1 and folder2 )
/config.php
/folder1/
/folder2/
I want this:
when a user point to any folder ( folder1, folder2 or any other folder ) then he is redirected to index.php
How could I do that ?
You want
mod_rewrite. For example, to forward any request to any alphanumerically-named folder toindex.php, passing the name of the folder as theGETparameterfolder, use something like: