{"id":16391851,"date":"2023-01-20T06:32:22","date_gmt":"2023-01-20T06:32:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-redirect-from-one-parameter-to-another\/"},"modified":"2023-01-20T06:32:22","modified_gmt":"2023-01-20T06:32:22","slug":"how-to-redirect-from-one-parameter-to-another","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-redirect-from-one-parameter-to-another\/","title":{"rendered":"How to redirect from one parameter to another"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">how can i redirect from one parameter to another? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">i have used this to redirect parameters link to original post links.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">source:  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">^\/(.*?)\/\\?m=.*<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Destination: \/$1\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">but i needed to redirect this on amp pages. Which would be like: ?m=1  to: ?amp=1  but i can&#8217;t set it.<\/p>\n","protected":false},"template":"","class_list":["post-16391851","topic","type-topic","status-publish","hentry","topic-tag-redirect"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16391851","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\/16391851\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16391851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}