Forum Discussion
URL string redirection irule needed
_https://xxx.xxx.com/eysso/sso_login.aspx?DeepLinkKey=66091484-1e26-46ba-8574-b2d659de9c6f to this: _https://xxx.xxx.com/eygsso/sso_login.aspx?DeepLinkKey=66091484-1e26-46ba-8574-b2d659de9c6f
And if so, can it redirect//eyfs.intellinex.com/eysso only when ?DeepLinkKey=<whatever> is present in the URL string?
Meaning that this URL string (below) would not be touched by the rule, and would pass through normally:
_https://eyfs.intellinex.com/eygsso/sso_login.aspx
As would
_https://eyfs.intellinex.com/eysso/sso_login.aspx
1 Reply
- VernonWells
Employee
Yes. This is untested, but should at least get you moving in the right direction:
when HTTP_REQUEST { if { [string tolower [HTTP::host]] eq "xxx.xxx.com" and [HTTP::path] starts_with "/eysso" and [HTTP::query] contains "DeepLinkKey" } { HTTP::redirect "https://[HTTP::host]/eygsso/[string range [HTTP::uri] 7 end]" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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