Forum Discussion
Peak_10_71174
Nimbostratus
Oct 27, 2009http redirect if no path match irule
I need to create an irule that accomplishes 2 things:
When incoming http requests for data.abc.com are received on a virtual server, they are redirected to www.abc.com/data. However, wh...
Matt_H_58911
Nimbostratus
Oct 29, 2009I would like to propose another way. Will this work?
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "http://www.domian.com/base/"
}
if { [HTTP::path] equals $null } {
HTTP::redirect "http://www.domain.com/base/"
}
}
So if someone were to go to www.domain.com/downloadfile.exe the file would be downloaded
if someone were to go to www.domain.com or www.domain.com/ they would be redirected to www.domain.com/base/
Please advise.
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
