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...
Angelo_V
Cirrus
Mar 24, 2017Hi,
[HTTP::host] contains only the host name without protocol (http, https).
when HTTP_REQUEST {
if { [HTTP::host] equals "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