I need to redirect bots on a dynamically translated website to a different URL

What is the name of the domain?

es.afsp.org

What is the issue you’re encountering

I need to redirect bots on a dynamically translated website to a different URL so that search engines can see the translated content.

What steps have you taken to resolve the issue?

I have tried setting up a transform rule with the following expression:

(http.user_agent contains "bot" and http.request.uri contains "es.afsp.org") or (http.user_agent contains "spider" and http.request.uri contains "es.afsp.org") or (http.user_agent contains "slurp" and http.request.uri contains "es.afsp.org") or (http.user_agent contains "archiver" and http.request.uri contains "es.afsp.org")

using the dynamic rewrite below

concat("https://www.onelink-edge.com/xapis/Flatten/P8EA6-BF99-976C-988C?url=//", http.host, http.request.uri.path).

The rewrite is active, but I’m still seeing results as though bots are not being properly redirected.