Randy_Johnson_L
Mar 06, 2017Nimbostratus
Evaluate full URL for empty URI / Path ?
I need to deploy an iRule that will perform a redirect, based on the HTTP::uri or HTTP::path being empty. This needs to take into account a user trying 'http://server.company.com' and 'http://server.company.com/' and redirect based on the existence of ANY uri. That is... if the URI string is present, it will redirect to http://server.company2.com[HTTP::uri] and if the URI is NOT present (or is 'empty', even with no trailing 'slash' it should redirect to http://server.company3.com.
I seem to be getting caught in evaluating for an 'empty' URI, in the form of 'http://server.company.com/'
Any help or references ??