Changes the url check when using hostname