def host_and_page(url):
    """ Splits a `url` into the hostname and the rest of the url. """
    url = url.split('//')[1]
    parts = url.split('/')
    host = parts[0]
    page = "/".join(parts[1:])
    return host, '/' + page