Forum Discussion
AShok_6738
Sep 07, 2011Nimbostratus
need help to wrire Irule
I need help to wrire Irule for this URL:
Based on .qa.abc.com/UBB we need to redirect to https://secure.qa.abc.com/servlet/Satellite?lsb=
Example: http://tak.qa.abc.co...
The_Bhattman
Sep 07, 2011Nimbostratus
Hi Ashok,
While I understand that you want a redirect, I am not exactly sure where you want to append the long URL?
That being said here is an example working of your redirect example.
when HTTP_REQUEST {
if {([HTTP::host] ends_with ".qa.abc.com") and ([HTTP::uri] eq "/UBB") } {
scan[HTTP::host] %s. prefix1
HTTP::redirect "https://secure.qa.abc.com/servlet/Satellite?lsb=$prefix1&category=157&pagename=VFSWeb/HomePage
}
}
I hope this helps
Bhattman
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects