Forum Discussion
brent112_11716
Nimbostratus
May 02, 2012Rewrite a portion of URI
Is there an easy way to re-write only a portion of the URI? Say i want to turn this. http://sharepoint/Information Technology/Information Technology Internal/projects/11111/default.aspx ...
MiLK_MaN
Nimbostratus
May 02, 2012The findstr command allows you to look for something within a string, then you can issue a skip count which in this case is 56. This means the variable "path" is being stored with everything after "/Information Technology/Information Technology Internal/".
The HTTP::uri command then modifies what is sent to the backend server.
The "ne" just means "not equal to", so if the set statement returns nothing, it won't execute the above HTTP::uri command.
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
