There is a folder dir in it lies the file 1.php . 1.php file contains a mixture of html and php code. In general, this is the path to the dir/1.php file. And in the root of the site is the index.php file.
Task: when opening the index.php file, this file should completely copy the contents of dir/1.php into itself and perform so that the address bar http://домен.ру/index.php address at http://домен.ру/index.php , and not at http://домен.ру/dir/1.php .
How to implement this with PHP? (Apachevskaya not to offer the substitution of links, not the case.)