Forum Discussion
Nyam_220167
Nimbostratus
Aug 19, 2016Traffic policy for url redirection creating Loops
Hello All,
I am trying to do the url redirect as below and i have created a Traffic policy(https://support.f5.com/kb/en-us/solutions/public/14000/900/sol14996.html) for the same.URL is redirecting bu...
Vijay_E
Cirrus
Aug 19, 2016HTTPS traffic: https://something.com -> https://google.com/web/sei
when HTTP_REQUEST {
if { ([HTTP::host] eq "something.com") and ([HTTP::uri] eq "/") } {
HTTP::respond 301 Location "https://google.com/web/sei"
}
}
You are probably not matching on "/" in the [HTTP::uri]. This is for HTTP traffic:
when HTTP_REQUEST {
if { ([HTTP::host] eq "something.com") } {
if { [HTTP::uri] eq "/" } {
HTTP::respond 301 Location "https://google.com/web/sei"
} else {
HTTP::respond 301 Location "https://google.com[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