For whatever reason this is killing me and I cannot get it to work. This is the basic idea, take 2 existing querystring parameters and then append their values to another set of querystring parameters:
There had to be a RewriteCondition that says, do this only when query_param3 and query_param4 are not in the querystring otherwise it will be an infinite loop. Thanks in advance.
EDIT: I realize this is an odd thing to do. The reason for this rule is that the site, while in my company, I don't have full control of the code. It needs 2 sets of query parameters to work properly even though there are only 2 different values. Yes, it would be easier to change it in the code on the back-end but it's not my team that controls the site so we want to just fix it with an apache rule.
--The Dan
Code:
URL coming in:
http://www.sitedomain.com/directory/page.jsp?query_param1=abc&query_param2=def
URL to be rewritten and redirected:
http://www.sitedomain.com/directory/page.jsp?query_param1=abc&query_param2=def&?query_param3=abc&query_param4=def
There had to be a RewriteCondition that says, do this only when query_param3 and query_param4 are not in the querystring otherwise it will be an infinite loop. Thanks in advance.
EDIT: I realize this is an odd thing to do. The reason for this rule is that the site, while in my company, I don't have full control of the code. It needs 2 sets of query parameters to work properly even though there are only 2 different values. Yes, it would be easier to change it in the code on the back-end but it's not my team that controls the site so we want to just fix it with an apache rule.
--The Dan