I came across this coupon website that uses a URL structure something like the below one for its affiliate links.
When clicked on the link, it will be automatically redirected from
I know there are a lot of plugins for WordPress that let you cloak the affiliate links. But those plugins require you to manually add the links in the plugins page first.
I was wondering how to achieve the above shown redirect. That is, simply add
https://example.com/?offers=/ in front of the actual affiliate link and it should be redirected.
Is there anyway I can achive this?