Forum Discussion
zafer
Nimbostratus
Feb 05, 2010uri based load balance
Hello
i'm using this iRule but i have problem.
The problem is when i request the url "www.domain.com/Touch" (it does not work) but if i add "/" at the end of the word it ...
The_Bhattman
Nimbostratus
Feb 06, 2010Hi Zafer,
The following example code simply examines the URI for a "/" and if it does not it performs a redirect with "/" at the end.
when HTTP_REQUEST {
if { [string tolower[HTTP::uri]] eq "/touch" } {
HTTP::redirect "http://[HTTP::host]/[HTTP::uri]/"
}
}
I hope this helps
Bhattman
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