Forum Discussion
kupaloid_50119
Nimbostratus
Dec 02, 2012help - irule http redirect
Hi, need some help in creating an irule for http redirect such that www.abc.com will redirect to www.abc.com/new but www.abc.com/test will not be changed
I have an existing irule already to redirect '/" to "/new" but have a new requirement for /test not to be changed
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "/new/"
}
}
Thanks
2 Replies
- What_Lies_Bene1
Cirrostratus
As you are using 'equals' in your if statement I would think your rule will work fine and meet your requirements right now. If the path is /test, it won't match and won't be redirected. - kupaloid_50119
Nimbostratus
ok thanks Steve, will test it out
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