function to remove domain from path
remove_domain(x)
x
path aka URL from which to first infer domain and then remove it