What I need is for a webpage to completely alter the users adressbar on visit.
For instance: I visit www.X.com, but my adress bar displays www.Z.com.
I have already looked at history.pushState / history.replaceState, but using them I get results like this: www.X.com/www.Z.com.
Is there a way, preferably using history.pushState/replaceState, to accomplish this effect?