Forum Discussion
Need Help for iRule
Aj2 This should do exactly what you would like for the hosts and uri paths provided.
when HTTP_REQUEST priority 500 {
set HOST [HTTP::host]
set URI [string tolower [HTTP::uri]]
if { ((${HOST} == "xyz.test.com") && (${URI} == "/age/signup")) } {
HTTP::redirect "https://abc.test.com/#/inSign/invite?account=xyz"
}
}
- Feb 16, 2023
Awesome Paulius ,
I will add an info for you , its highly recommended to give up using variables in your Scripts , and use it when you have to use it only.
that's for performance concerns.- Mike757Feb 17, 2023MVP
Not sure in this case, Mohamed...
I get a feeling the example is more general, and variables would be needed. When Aj2 wrote "zyz" I imagine it may take up any value.
Aj2, can you confirm the need for string replacement in your request? Or did Paulius answer your needs 100%?
/Mike
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com