I am trying to write an IRULE for URL rewrite but and looked at the ones online but none seems to be working. The virtual server is set to "standard with default http profile and here is what I need:
@Qasim What is occurring when you make this change? What are you seeing on your tcpdump between the F5 and the client? You can try adding the following line to see what you see in the F5 logs.
when HTTP_REQUEST {
if {[HTTP::path] eq "/"}{
HTTP::path "/ui/"
log local0. "The HTTP Path is now [HTTP::path]"
}
}
@Qasim If you are not performing SSL termination for this VS you will not be able to look at the HTTP header and manipulate it using iRules or traffic policies. If you must perform this function at the F5 then you will need to perform SSL termination.