Forum Discussion
ShakN_167332
Nimbostratus
Aug 20, 2014Need help in Irule redirection for multiple sites.
in our setup we have sites which are accessed by internal users as well as internet users via http and https. so we have created 4 VS (2 internal VS, one for http and one for https for internal users...
nitass
Employee
Aug 25, 2014you missed square brackets around class match command.
when HTTP_REQUEST {
if { [HTTP::host] equals "asites.abc.com" } {
if { [class match [HTTP::uri] equals test] } {
HTTP::redirect "http://asites.abc.com[class lookup [HTTP::uri] test]"
}
}
}
- ShakN_167332Aug 25, 2014
Nimbostratus
ohh yes i corrected it. testing the redirection.. - ShakN_167332Aug 25, 2014
Nimbostratus
no... redirection not happening. what to do next? - nitassAug 25, 2014
Employee
you may add log command (log local0.) to the irule. example is in the irule i have given above in this thread. - ShakN_167332Aug 25, 2014
Nimbostratus
I checked it is nor redirecting the url it is still the same.. http://asites.abc.com/xyz/finance/SitePages/Home.aspx do i have to use full url like after /xyz/finance it is sitesPages/homes.aspx. - nitassAug 25, 2014
Employee
yes because you use equals in the irule. if you do not want to use full url in test data group, you can change from equals to starts_with.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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