{"id":8831551,"date":"2017-02-21T18:40:26","date_gmt":"2017-02-21T18:40:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-redirect-all-subpages-to-another-domain\/"},"modified":"2017-02-21T18:40:26","modified_gmt":"2017-02-21T18:40:26","slug":"how-to-redirect-all-subpages-to-another-domain","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-redirect-all-subpages-to-another-domain\/","title":{"rendered":"How to redirect all subpages to another domain"},"content":{"rendered":"<p>Hello,<\/p>\n<p>How do I manage to redirect many subpages to the homepage of another domain?<\/p>\n<p>Example:<\/p>\n<p>Old Domain:<br \/>\nexample.com\/category\/p1<br \/>\nexample.com\/category\/p2<br \/>\n&#8230;<\/p>\n<p>Can I just use:<br \/>\nSource URL: example.com\/category\/*<br \/>\nTarget URL: newdomain.com<\/p>\n<p>Do you have a function where the asterisk(*) lets you redirect any pages to another domain?<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-8831551","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8831551","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\/8831551\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8831551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}