How to match URI string with "#" character?
We have some URI paths where a pound/hash symbol is used; for example:
http::/mysite.com/client123/app http://mysite.com/clientxyz/app
I need to write an iRule to redirect "clientxyz" to an alternate location. The below basic iRule does not match "clientxyz" and I end up in pool.2 instead of pool.1. However if I change the switch statement to "/clientxyz*" it works fine. There are client directories that will be named very similar, and just to be on the safe side we do not want to allow any possibility of a wildcard match. I researched special characters for both iRules and TCL and "" is not listed as one of them. I tried escaping it anyways with a "\" but it made no difference. Please advise. PS - I have no idea why the "" is there to begin with; but in the short term it cannot be removed.
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/clientxyz/*" { pool pool.1 } default { pool pool.2
} } }