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. ...
Arie
Altostratus
Jan 16, 2015This should do it:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/?" } {
HTTP::respond 301 Location "http://[HTTP::host]/store/s/[HTTP::query]"
}
}
(edited on 2015-01-22 to reflect Eric's fix)
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