We are trying to rewrite a link like this:
https://example.com/some/thing/?tx_career_view%5BjobUid%5D=12&tx_career_view%5Baction%5D=show&tx_career_view%5Bcontroller%5D=Job&cHash=2d8595af0dfc0bf1e8b75d88849f
Our rule looks like this:
rewrite ^/some/thing/(.+) /some/where/else/ permanent;
In https://regex101.com/ it says our REGEX matches, but NGINX doesn't rewrite.
As @RichardSmith pointed out, the URL arguments are not matched against (as in, for your URL, it is /some/thing/). Since you want to rewrite for any arguments, simply use:
rewrite ^/some/thing/ /some/where/else/ permanent;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With