Hello,
I am using the Redirection plugin on my WordPress site and I’m encountering an issue with a specific redirection rule.
My goal is to redirect URLs of the type [https://my.website.com/ref/ID](https://my.website.com/ref/ID) to a differently formatted URL, where ID represents a numeric affiliate identifier.
I attempted to set up the redirection with the following regular expression:
* **Source URL (with Regex enabled):** \^/ref/(.\*)
* **Target URL:** https://go.mysite.com?sourceId=$1&userId=4
However, the redirection is incorrectly redirecting to [https://go.mysite.com/ref/ID/?sourceId=ID&userId=4](https://go.mysite.com/ref/1/?sourceId=1&userId=4) instead of the desired target URL. /ref/ID/ is appended to the beginning of the URL and i don’t understand how I can remove it.
Do you have any suggestions to correct this issue and achieve the correct redirection? Thank you very much for your help!
Best regards,
[ad_2]