Forum Discussion
johtte_168100
Nimbostratus
Oct 28, 2015redirect to new path
Hi, i have this url https://abc.com/site1/online/index.html and want to redirect to this site https://abc.com/online/index.html but it doesn't work.
I try to this irule:
when HTTP_REQUEST {...
Michael_Jenkins
Cirrostratus
Oct 29, 2015In that case, you could try something like this:
when HTTP_REQUEST {
Check the requested path with wildcard matching
switch -glob [HTTP::path] {
"/site1/online/*" {
Trim the "/site1" from the front of the path
HTTP::path [string range [HTTP::path] 6 end]
Update the pool
pool 192.168.111.90
}
}
}
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