Forum Discussion
Chris_Grabill_2
Nimbostratus
Feb 01, 2016Help with a redirect with a uri modification.
I am having an issue where I need to redirect a particular site on SharePoint to a different server farm.
I would like to see and anything that comes after the apr
redirected to and include the a...
Kai_Wilke
MVP
Feb 01, 2016Hi Chris,
you may try the snippet below. It uses the
[string range] syntax, to cut the first 20 characters from the requested [HTTP::uri] to build the redirect location...
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/techservices/govern/apr" } then {
HTTP::redirect "https://sharepoint2/sites[string range [HTTP::uri] 20 end]"
}
}
Cheers, Kai
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