• Hi, I am trying hard to figure out how can i redirect a masked url based on a custom field url.

    Like if i have a masked url

    '<a href="https://domain.com/go/'. $post_slug .'/" class="button">Click here to save ' . $discount_percentage . '% on ' . $title . '</a>';

    Then how can i redirect this url https://domain.com/go/wordpress to a custom field “url” “https://www.ads-software.com&#8221;
    The redirect must be configured in such a way that it will only redirect urls with /go/ and followed by post_slug. Do not redirect normal posts that are using domain.com/post_slug

    Any ideas?

  • The topic ‘Masking Affiliate url using $post_slug after "/go/"’ is closed to new replies.