{"id":13685120,"date":"2020-11-19T20:45:22","date_gmt":"2020-11-19T20:45:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/redirect-from-one-query-string-to-another-while-maintaining-param-value\/"},"modified":"2020-11-19T20:45:22","modified_gmt":"2020-11-19T20:45:22","slug":"redirect-from-one-query-string-to-another-while-maintaining-param-value","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/redirect-from-one-query-string-to-another-while-maintaining-param-value\/","title":{"rendered":"Redirect from one query string to another while maintaining param value"},"content":{"rendered":"<p>I&#8217;m having trouble setting this up using regex, any help will be greatly appreciated.<\/p>\n<p>Source:<br \/>\nhttp:\/\/somedomain.com\/somepage.aspx?someparam=123<\/p>\n<p>Target:<br \/>\nhttp:\/\/otherdomain.com\/otherpage?otherparam=123<\/p>\n<p>Query param value will vary and should be carried over to target URL, e.g.:<br \/>\nsomepage.aspx?someparam=XXX =&gt; otherpage?otherparam=XXX<br \/>\nsomepage.aspx?someparam=ZZZ =&gt; otherpage?otherparam=ZZZ<br \/>\nand so on.<\/p>\n","protected":false},"template":"","class_list":["post-13685120","topic","type-topic","status-publish","hentry","topic-tag-query-string","topic-tag-regex"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13685120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13685120\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13685120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}