parse_url to get path