Apache user here so not very familiar with nginx :)
Eg url like this
testpage.no/products?test_category=434
How to redirect this url and its content to this url:
testpage.no/testcategory
is this correct way if not what am I missing:
location / {
if ($arg_test_category = 434 ) {
return 301 testpage.no/testcategory;
}
try_files $uri $uri/ /index.php$is_args$args;
}