split url into file and host fields
split url into multiple pieces and handled the logic for output.