Forum Discussion
Joe_Greco_BBB_1
Nimbostratus
Jan 15, 2015Search URI for ?
I have a customer that wants to capture a user entering a "?" into the URI as a search string, and perform a redirect on it. I've tried several ways to capture this, but none seem to work properly. ...
Eric_St__John
Employee
Jan 15, 2015That should work to some degree. If a request came in for http://mysite.com/?freeshipping it would get redirected to (notice the double slash '//' as you had /store/s/[HTTP::uri when you are probably wanting /store/s[HTTP::uri]
If the URI does not start with /? it will redirect back to the same location they requested, which will cause a permanent redirect loop. You should remove the else portion of the iRule.
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