I want to change urls based on the filter (such as state, fuel, budget etc.) selected in this page
www.carsangrah.com/buy-used-cars/
mod_rewrite.
HTML5 introduced the history.pushState() and history.replaceState() methods, which allow you to add and modify history entries, respectively.
As soon as filter changes, use this to change url:
window.history.pushState(‘page2’, ‘Title’, ‘/page2.php’);
Read more about this from here
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.