for sure this question has been asked so many times in different ways, but i didn't find anything usefull for my case.
We have an installation of Magento 1.9.3.6, the main task is to rewrite the pagination param to a SEO Friendly url param, for example:
http://www.example.com/category?p=2
to
http://www.example.com/category/p/2
we use nginx so the .htaccess ways is out, i'm trying to create a Router and an Observer (as the web suggest, maybe) that will rewrite the param if match, but i have one question:
If i allow magento to redirect the user to the correct page if in the URI there is "p=*" (with the Router & Observer way) it works, but how i REWRITE all the Links for example, in the pager? because also if magento allow to redirect to the correct page if there is a page param, the rendered urls in the whole rendered website are not rewrited.
Wich is the best way to do this? i need all the urls SEO Friendly and i won't use external modules.
Do you have any suggestions?
So many thanks in advance.