The above is working fine however I also require a catch-all entry for anything that does not match (client) https://www.testsite.com/collect, redirect to a an 'oops' page or similar. According to the f5 documentation, a request does not need to match any entry. That is if no entries match and there is no catch-all entry, the rewrite profile has no effect.
I have tried using a wildcard as the last entry in the list, i.e:-
@NUCUSERCan you please provide the current configuration of your iRule so that I can better understand what current actions you are taking and then we can come up with something that works for your situation?