I need to Get a querystring from URL1 then redirect to URL2 - with the querystring from URL1 appended.
The querystring has 2 values:
http://URL1.com/hi/j?a=123&b=666
I want this to redirect to:
http://URL2.com/hi/b?a=123&b=666
I can't find anything on doing this on Google. I found this but it only works with 1 value and seems to have got criticism - and it only takes the querystring and doesn't add it: How can I get query string values in JavaScript?
Thanks.