I would like to redirect:
something.com/search?keywords='value'
to
something.com/search?q='value'
Here is my Nginx config:
location ~ /search { if ($args ~* "keywords=(.*)") { rewrite ^.*$ /search?q=$arg_keywords permanent; } }
But the q
parameter is empty on redirection.
What is wrong?