Forum Discussion
Joe_Frost_43072
Nimbostratus
May 11, 2007Redirect based on images to another domain
I'm trying to redirect based on path/uri content to another domain while keeping intact the structure of the request if the uri content is not mached just send to a local pool.
Similair to apache:...
hoolio
Cirrostratus
May 14, 2007You would want to include the original URI in the redirect.
rule live_statics_rule {
when HTTP_REQUEST {
if { [matchclass [HTTP::path] contains $::apache] } {
HTTP::redirect "http://img.domain.com[HTTP::path]"
}
else {
pool live_resin
}
}
}Aaron
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