Forum Discussion

Jeff_Morrison_4's avatar
Jeff_Morrison_4
Icon for Nimbostratus rankNimbostratus
Jul 14, 2006

Redirect Issues

I have the following rule on my F5:

 

 

elseif { [HTTP::uri] contains "/xyz"}{

 

HTTP::redirect https://newsite.domain.com/xyz/

 

}

 

 

The problem is that when the F5 sees "xyz" is does the redirection properly, but text after the xyz gets dropped.

 

 

Example:

 

 

https://oldurl.domain.com/xyz/1223/789/ gets redirected to https://newurl.domain.com/xyz

 

 

How do I keep all the url and just redirect to a new host?

 

 

No RepliesBe the first to reply