replacing x.php to etc/x.php