Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Masking the redirected URL

V4ISHAKH
Nimbostratus
Nimbostratus

Hi Folks,

 

I have an irule as below, after the redirection how can I keep the original URL which is https://xyz.com

 

when HTTP_REQUEST {

  if { [active_members [LB::server pool]] == 0 } 

{ if HTTP_RESPONSE

HTTP::redirect "http://sv2lxtabassit01:8080/index.html"

  }

}

 

I tried to map the URL to xyz.com but it is not working

when HTTP_REQUEST {

 if { [string tolower [HTTP::uri]] starts_with "/sv2lx" } {

  HTTP::uri [string map -nocase {"/sv2lx" "/xyz.com"} [HTTP::uri]]

 }

}

1 REPLY 1

Hi V4ISHAKH,

when HTTP_REQUEST {
	if { [active_members [LB::server pool]] == 0 } {
		HTTP::uri "/index.html"
		# change ip
		node 10.11.12.13 8080
		
		# if virtual server has server ssl profile and 8080 port is not running SSL
		# SSL::disable serverside
	}
}