Forum Discussion
dmbake88_23490
Nimbostratus
Jan 11, 2008http redirect irule
I'm looking to write an irule (unless there is another way to do this with the f5) to redirect an http request coming into a vip. The uri is a little long for the customer and it would be easier on t...
Michael_Yates
Nimbostratus
Jan 11, 2008Try this one. We use it to make the URL more "User Friendly".
If the URL is http://foo.com/blah/blah2/blah3
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "/blah/blah2/blah3"
}
}
This will enable the user to enter http://foo.com and the F5 will append on the rest of the url to:
http://foo.com/blah/blah2/blah3
Apply the iRule to the VIP and you should be set.
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