I want to forward the request to:
http://www.demo.com/en/group/index/test
To:
http://www.demo.com/group/ index/test?siteId=en;
The parameter en after the national variable siteId is the /en/ in the previous URL. How to write this rule in Nginx?
I hope God can give me some guidance, thank you very much~~
Put it in the block of
location /
What you have to do is not forwarding, but URL redirection. So you can use nginx
rewrite
rewrite summary