I can not find the way to use URL parameters to define pagination pages /posts?page=2
instead of the conventional WordPress way /posts/page/2/
The goal is to make WordPress change the way it manages pagination, without breaking the website that is using the conventional WordPress permalinks format
/posts/page/2/
and change the pagination to
/posts?page=2
I am happy also with this variant:
/posts/page/2?page=2
if necessary.