302 response

Hello, all,

Can anyone tell me if a 302 response will include URL params in either the redirect or logging?

V/r,

^ _ ^

The question is rather vague. Can you elaborate?

Not exactly. Boss asked me if URL params were passed in 302 redirects. I came here to ask. Boss didn’t elaborate on his query. Sorry I can’t be more precise.

V/r,

^ _ ^

Well a 302 response is a HTTP response with a special Location header that has the URL the browser should redirect to. If you pass URL params to that URL then yes, URL params will be passed. If you don’t pass them then they will not.

If we’re talking Redirect in Apache then yes, URL params will be appended by default, but with RewriteRule it depends; if you add any URL paramaters to the destination URL the original parameters will be lost, unless you add the QSA flag to the rule.

With NGiNX I’m not sure, I’ve never had to deal with that.

1 Like

Thank you. I will pass that along to my boss. (I’m not sure if we are using Redirect or Rewrite Rule.)

V/r,

^ _ ^

Also, for simple things like this I find it’s easiest to just try in Apache in a local sandbox and see what happens. Fastest way to an answer most of the time :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.