I need to set up a script that does redirection when there was status code 200 for the same page with dynamic context for example https://myURL.com/xtyfwdk
I set the following script but has error
Error : aFleX compile error : line 15: “command is invalid in current event context [ HTTP :: uri ]”
used script
When HTTP\_RESPONSE \{
if \{ [ HTTP :: Status] contains " 200 "\} \{
HTTP :: redirect " https://myurl.com[HTTP::uri]"
\}
\}
But when I set for a Static page works
When HTTP\_RESPONSE \{
if \{ [ HTTP :: Status] contains " 200 "\} \{
HTTP :: redirect " https://myurl.com/project/ "
\}
\}