Forum Discussion
Michael_61106
Nimbostratus
Mar 14, 2013Redirect to New Page but Pass Query String Parameters
Hi !
Is somebody able to help me on this request please.
We want to redirect to a new path on the website but also pass the requested parameters (session Paramater which changes) on the red...
nitass
Employee
Mar 14, 2013e.g.
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::path] eq "/" } {
HTTP::redirect "https://[HTTP::host][string map {/? /new1/new2?} [HTTP::uri]]"
}
}
}
[root@ve10:Active] config curl -Ik https://mysite.test.com/?login=12345678901234567890
HTTP/1.0 302 Found
Location: https://mysite.test.com/new1/new2?login=12345678901234567890
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
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