Forum Discussion
Redirection on below url as mentioned below and keep the original url as it is...
Hello All,
what requires is mentioned below.
https://uat.toolboxbo.kamlesh.com/toolbox Shoud redirect to http://cfrsv50143005ap.p2-eu.kamlesh.net:9080/toolbox
https://uat.toolboxbo.kamlesh.com/toolbox?example=123 Shoud redirect to http://cfrsv50143005ap.p2-eu.kamlesh.net:9080/toolbox?example=123
General rule: everything after the / should be keeped in the redirection
https://uat.toolboxbo.kamlesh.com/somethingelse Shoud redirect to http://cfrsv50143005ap.p2-eu.kamlesh.net:9080/somethingelse
Also Client wants to keep the original URL...
Anyone please help.Thank in advance.
1 Reply
- Hannes_Rapp
Nimbostratus
Is 'uat.toolboxbo.kamalesh.com' the only HTTP Host serviced from this Virtual Server, or are there others for which the redirection should be omitted? Also, has your client specified if it's a permanent redirection mapping, or only temporary redirect which will be removed some day?
You can use the code below, but only if you do not have other HTTP Hosts serviced from the same Virtual Server.
when HTTP_REQUEST { Replace 302 with 301 if it's a permanent change. HTTP::respond 302 Location "http://cfrsv50143005ap.p2-eu.kamlesh.net:9080[HTTP::uri]" Connection Close }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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