Forum Discussion
Miron_du_Plessi
Nimbostratus
Nov 03, 2007HTTP Redirect based on URI
Hi,
I have a webserver behind our LTM. Access to the webserver is working correctly when users use the full url of
https://remedy.xxx.net/arsys/home
however we are trying...
Miron_du_Plessi
Nimbostratus
Nov 05, 2007Aaron,
Thanks I got it working,what looks like correctly.
I couldnt use null so just Anded with "/" which seems to work.
I will play with the logging which looks usefull.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "remedy" and [string tolower [HTTP::uri]] eq "/" } {
HTTP::redirect "https://remedy.xxx.net/arsys/home"
} elseif { [string tolower [HTTP::host]] eq "remedy.xxx.net" and [string tolower [HTTP::uri]] eq "/"} {
HTTP::redirect "https://remedy.xxx.net/arsys/home"
}
}
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
