Say I have a origin url /example-url/endpoint?lang-code=something
needs to be rewritten as /example-url/anther_endpoint?lang_code=something
.
and the rule like rewrite ^/example-url/endpoint /example-url/anther_endpoint?lang_code=$arg_lang-code permanent
won't work, because hyper(-
) is a special character,
So can this be archived by nginx?