Forum Discussion
ant8344_5401
Nimbostratus
May 04, 2006http redirect rule while preserving the whole URI
Hello,
I have done simple redirects before but have never come across this request (which stumped me).
For instance, we have a redirect from http://www.cnn.com/abc going to http://...
Deb_Allen_18
May 04, 2006Historic F5 Account
This command will extract the trailing part of the URI:
findstr(http_uri, '/abc', 4)It's been a while since I played w/v4 rules, but I think you could then build the redirect as:
redirect to "https://%h/xyz/(findstr(http_uri, '/abc', 4))"(It passes the syntax check, but I seem to have a firewall blocking my attempt to push traffic through the virtual, so I can't verify if the findstr command is evaluating as expected within the context of the redirect.)
HTH
/deb
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