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...
Andy_Herrman_22
Nimbostratus
Sep 27, 2007What happens if the URL only has a single query parameter and it isn't zoneID? Right now your irule will treat it exactly the same as a URL that only has the zone ID.
Also, what happens if there's a url like this:
http://yourhost/some/path/with/zone/in/it?foo=a&myDummyzoneId=fjdfak&bar=foo
No zoneID is defined in that URL, but your iRule will act as if it is, as findstr will mistakenly detect the "myDummyzoneId" param as the zoneID param. Even if zoneId is defined in that url, if something else that ends in "zoneID" appears before it in the query string then you'll pull that value out instead of the proper one.
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