Forum Discussion
Parveez_70209
Nimbostratus
Aug 12, 2014Redirection Issue
Hi Team,
We are using HTTP and HTTPS Virtual-Server profile, so we are trying to put the below new Irule into both:
when HTTP_REQUEST {
set https_uri [string tolower [HTTP::uri]]
if { $...
Cory_50405
Noctilucent
Aug 12, 2014Try this, which should keep the HTTP host the same (your rule above is always redirecting to abc.xyz.com) and properly redirect to URI /broutlet/br/pt/ if that's not the URI specified:
when HTTP_REQUEST {
if { ! [string tolower[HTTP::uri]] eq "/broutlet/br/pt" } {
HTTP::redirect "http://[HTTP::host]/broutlet/br/pt/"
}
}
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