Forum Discussion
paul_dcc
Nimbostratus
Jun 24, 2014Can't get my redirect to work !!!
Hi All,
I'm trying to get my redirect to work and I'm have some problems, can some one put me right please.
when HTTP_REQUEST {
if { [HTTP::uri] equals "https://test.geowessex.com" } {
HTTP::r...
Jun 25, 2014
Hi!
Did you include the three log functions below?
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
log local0. $host
if { $host equals "test.geowessex.com" } {
log local0. "Redirected based on $host"
HTTP::redirect "https://test.geowessex.com/geoserver/"}
elseif { $host equals "test2.geowessex.com" } {
log local0. "Redirected based on $host"
HTTP::redirect "https://vmcrgifme1"
}
}
/Patrik
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