fixed some issues with non-rewritten urls in router.php