Split index.php into router.php