Forum Discussion
dacrud_18985
Nimbostratus
Jun 04, 2008chop off question mark
Hi all,
I've got a URL like this:
http://www.domain.com/folder/recent_main_stuff/list/2?ts=1
I need to chop off everything after the ?, and make it like: ...
Robert_Sutcliff
Nimbostratus
Jun 06, 2008Something like this would work
when HTTP_REQUEST {
if { [HTTP::uri] contains "?" ] } {
HTTP::redirect "http://[HTTP::host][HTTP::path]"
}
}
Otherwise, why return a redirect? JJust changing the uri for all further processing would have a similar effect without the user seeing any action.
That would require a rule like
when HTTP_REQUEST {
HTTP::uri "[HTTP::path]"
}
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