http redirect i-rule under https VS not working
Hi I am new to i-rule writing. I have 4 urls hosted on one web server. And web server is front ended by Big IP LTM for ssl offloading. Now i want my urls to redirect to /directory when accessing it with a general url address. I have configured the http and https VS and clientssl profile and in normal conditions (without i-rule) the urls works perfectly. So if i access the url https://abc.bbc.com/mydirectory/ it works perfectly but when i access https://abc.bbc.com (when i-rule applied) it redirects to https://abc.bbc.com/mydirectory/ (i can observe in browser) but output with error "page can't be displayed"
Strange is that when i apply the same i-rule to http VS the url works but when i apply the i-rule to https VS the url stop working. The configuration on http and https vs is almost same other than clientssl profile.
I-rule applied to http & https VS :
when HTTP_REQUEST { if { [string tolower [HTTP::host]] contains "abc.bbc.com" } { HTTP::redirect https://abc.bbc.com/mydirectory/ } }
So above i-rule works with http VS but not with https VS.I also tried using switch statements but no luck :(
Thanks !!