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;
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9932f-173e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9932f-173e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?