I am quite new to nginx rewrite concept and I can't figure out how to rewrite the requested_uri to a specific Uri. I am trying to make rewrites to specific js files.
For example, I have this requested_uri: http://test.example.com/mf/test/index.js?review=abc
I want to rewrite it only to /index.js
I am using my own specific domain for that. I want to rewrite everything to /index.js so that I can get a js file as a response.
I am really struggling to find out how it works. Can anyone help me do this, please?