Added some url checks in router.php