About Nginx Rewrite rewriting rules

the project is built online through:

http://10.1.4.41/coupons/binding/id/4

this kind of URL is used to access it, but after it is built locally, it can only be accessed through:

 http://10.1.4.41/?controller=coupons&action=binding&id=4

to access, could you tell me how to write this rewrite rewriting rule?

Feb.28,2021

 rewrite ^/(.*)/(.*)/(.*)/(.*)$  /?controller=$1&action=$2&$3=$4  last;
Menu