{"id":6048729,"date":"2015-04-23T13:29:36","date_gmt":"2015-04-23T13:29:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/using-regex\/"},"modified":"2016-08-24T15:06:23","modified_gmt":"2016-08-24T15:06:23","slug":"using-regex","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/using-regex\/","title":{"rendered":"Using regex"},"content":{"rendered":"<p>I manage support tickets on my sites using a plugin called Sola Support Tickets.<\/p>\n<p>This creates permalinks for tickets in the form <code>\/support-tickets\/name-of-support-ticket<\/code><\/p>\n<p>The first reply to such a ticket has a permalink in the form <code>\/ticket-response\/reply-to-name-of-support-ticket<\/code><\/p>\n<p>Subsequent replies to the same ticket have permalinks in the form <code>\/ticket-response\/reply-to-name-of-support-ticket-2<\/code>, <code>\/ticket-response\/reply-to-name-of-support-ticket-3<\/code>, etc.<\/p>\n<p>I don&#8217;t know if it&#8217;s possible, but what I&#8217;d like to be able to do is to redirect all replies to a ticket to the ticket itself. I have tried various permutations, but I can&#8217;t get anything to work.<\/p>\n<p>Could you suggest what I might try for the source and target URLs, please?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wp-redirects\/<\/p>\n","protected":false},"template":"","class_list":["post-6048729","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6048729","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\/6048729\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6048729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}