what I'm looking for is the ability of nginx to detect that url has a cid request variable.
e.g. www.adomain.com/froggy?cid=12&as=false (the query string can be solo or mixed with others, and cid is not necessarily the first variable in the query string)
If cid is found, it must send the cookie header assembly with the tmp_cid variable, indicating the value that is required for the cid query string variable.
Then he must also send 301 redirects to send the user to the same URL that he entered, but without the cid string variable, so with the above URL, he redirects to www.adomain.com/froggy? a = FALSE
Hope this makes sense.
source
share