For technical reasons, it is necessary to allow execution of only one php script, and specifically - index.php in the root directory of the site. All other scripts with different names should be ignored and redirected to the main one without parameters. How to make it beautiful?