Forum Discussion
OmarKhan_249581
Nimbostratus
Mar 22, 2017HTTP URI redirection to specific URL
Hi - i have a following scenario;
HTTP VS - http://www.abc.com (redirecting to HTTPS)
HTTPS VS - https://www.abc.com
Now customer wants to implement the following logic;
If anyone go...
Vijay_E
Cirrus
Mar 22, 2017Try this (untested):
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.abc.com") and ([HTTP::uri] starts_with "/CustomAB/") } {
HTTP::redirect "http://xyz.test.com/services.txt"
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
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