如何覆盖URL? [关闭]

I have this URL:

http://qwertyuiopasdfghjklçzxcvbnm

And I want to change it to something else without changing the page:

http://www.something.com

Is this possible? If it is tell me the code please

You need to use the pushState or replaceState methods

window.history.pushState(null, null, "/your-new-url");

OR

window.history.replaceState(null, null, "/another-new-url");