im not sure you can actually use wildcards in an equals, so in
{[HTTP::uri] equals "/bd*"}
, what if you try it with contains or starts with?
also it seems to forward you to something else then http://site.name/bd/folder/…, but perhaps your script at /bd/public/frameset_top_html.jsp does that?
I’ve actually tried that way as well but ti didn’t work. It seems to me that the iRules is being entered multiple times ( I see this using the LOG command ).
Here is some information from the log file. All this occured from just one hit ( the first BD is just an indicator to which If statement I took:
You can use Wildcards inside of a switch statement to make things fit and act properly as well as set a default action if none of the conditions are met.
I took your original iRule and converted. The “-” at the end of each qualifier tells the iRule that if it qualifies follow the same action as the NEXT item on the list, so in this example all of them will set the HTTP::uri value. If none of them qualify then you will be redirected.