Forum Discussion
naladar_65658
Altostratus
Jan 21, 2009URI Redirect with complex URI
Hello all,
I have been beating my head up against a wall on this one. I have read numerous posts and have tried out a ton of different methods, but I am just not having any luck on thi...
dennypayne
Employee
Jan 21, 2009You're missing an "if", and instead of "redirect to" you need to use the HTTP::redirect command. I would also use "else" instead of "default":
when HTTP_REQUEST {
if { string tolower[HTTP::uri] starts_with "/thewrongnet/pdfsonline/" } {
HTTP::redirect https://www2.mycompany.com/thenet/ + substr(HTTP::uri, 24)
} else {
pool Sharepoint_Pool
}
}
I haven't double-checked all the brackets for syntax but that should get you going...
Denny
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