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

URL redirection iRule

Preet_pk
Altostratus
Altostratus

Hi,

Please let me know the iRule  for below URL redirection. Below are the details.

https://excample.com:9085/labs  to redirect to  https://excample.com/labs 

1 ACCEPTED SOLUTION

Hi Preet_pk,

Can you try this iRule on the virtual server with 9085 port?

when HTTP_REQUEST {
	if { [HTTP::host] eq "excample.com:9085" && [string tolower [HTTP::uri]] eq "/labs" } {
		HTTP::redirect https://excample.com/labs
		return
	}
}

 

View solution in original post

1 REPLY 1

Hi Preet_pk,

Can you try this iRule on the virtual server with 9085 port?

when HTTP_REQUEST {
	if { [HTTP::host] eq "excample.com:9085" && [string tolower [HTTP::uri]] eq "/labs" } {
		HTTP::redirect https://excample.com/labs
		return
	}
}