I just moved from apache to nginx and cant fathom this rule.
I want to add this header to all pages that include a query string.
add_header X-Robots-Tag "noindex, nofollow";
The apache working rule was.
RewriteCond %{QUERY_STRING} (^|&)(sortOrder|sortField) [NC]
RewriteRule .* - [E=MY_SET_HEADER:1]
Header set X-Robots-Tag "noindex,nofollow" env=MY_SET_HEADER
Thanks in advance.