httpclass vs irule uri priorities
Howdy,
I've a rule which is blocking or permitting access to certain URI's by means of a starts_with match. I can match "/testuri" against the request uri, e.g. /testuri/example and then reject the connection. This in itself is working well.
Seperately to this, I have an httpclass which redirects / to /home.
I was trying to set up my rule so that I would block / (i.e. every url by default) and then allow /testuri as a specfiic location underneath that. This again works fine, however the logic clashes with the redirect from / to /home.
Basically, the reject in the filtering irule is executed before the httpclass is processed, so as much as I can permit /home I can't perform the redirect to send the user there, meaning I can't use a default deny logic in my rule.
Is there any way to make the httpclass redirect happen before the iRule?
Frustraingly I recently replaced an iRule which was doing this / to /home redirect with an httpclass in order ot make the config more standard and readable, but as the processing is happening in a different stage in the process, I *seem* to be in a worse position now, as befhorehand I could just set a higher priority on one of the rules to execute the redirect before the block..
Thanks
Chris