Forum Discussion
Dayton_Gray_103
Nimbostratus
Sep 20, 2007Change URI parameters with a 301 redirect
I am looking to change a URI to remove certain query string parameters and redirect with a 301.
Example:
Incoming URI
www.example.com/example.jsp?zoneId=624906&zz=2255956&parentPage=exa...
Dayton_Gray_103
Nimbostratus
Sep 27, 2007aherrman,
I appreciate the post.
The first if statement checks to see if there is more than one query string. If there isn't it will just pass it along to the else (pool definition) unfettered which is desired behavior. Am I missing something??
I appreciate your concern about other query strings. Could it not be written like this?:
set zoneid [findstr [HTTP::uri] starts_with "zoneId=" 0 "&"]
Or can you not use a starts_with within a findstr funciton?
Thanks!
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