Change URL Website without Load Page

Suman Shrestha
Jul 23, 2017 · 1 min read

If your website is simple enough, like a portfolio, you can simply take leverage of history API of browsers in JavaScript.

What it basically does is, it changes the state of URL of your website without the necessity of loading the page.

history.pushState({},"URL Rewrite Example at laravelnepal.com","https://laravelnepal.com")

Everything is awesome

laravelnepal

From laravel developers of nepal

Suman Shrestha

Written by

laravelnepal

From laravel developers of nepal

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade