I have done pagination in wordpress with Jquery/Ajax/wp_pagenavi() which instead of reloading page refreshes only a div to load new content, it works fine but I would like to update part of URL as well - without reloading the page.With jQuery pagination url for Page 1, Page 2, Page 3 doesn't change and is always same : myhost.com/category/
I want it look as it would look with standard pagination :
add '/page/$paginated_page_number/' to base URL which is myhost.com/download/category/
myhost.com/download/category/page/2/
myhost.com/download/category/page/3/
myhost.com/download/category/page/4/ ... ...
I also plan to use jQuery div refresh for tags and I need to change part of URL without reloading page, when tag is choosen I will refresh div with new content and update URL :
replace : '/download/category/' to '/tag/$choosen_tag/'
How to replace part of URL without reloading the page ?