Thiyagu_343098
Jul 04, 2018Nimbostratus
irule help to fix the error
Hello all,
I'm getting below error while executing this script.
when HTTP_REQUEST { if {[string tolower [HTTP::host]] contains "test1.com"}{ set newurl [string map -nocase {"test1.com" ""} [[HTTP::host] "test2.com" 1]] HTTP::respond 301 Location "https://[HTTP::host $newurl][HTTP::uri]" } }
error log: TCL error: /Staging_CC/IRULE_URL_REDIRECT_TEST_2 - invalid command name "net.staging.test1.com" while executing "[HTTP::host] "test2.com" 1"
Thanks a lot in advance for any of your help to fix the issue.
Regards, Thiyagu