Forum Discussion
AlexBCT
Mar 06, 2022Cumulonimbus
Hi, I hope you already found the answer, but if not, maybe this may help;
In the IF statement, have you tried changing [HTTP::host] equals "test.com" to [HTTP::host] ends_with "test.com" ?
Certain browsers and versions automatically add "www" to the beginning of the domain name, meaning it won't match the IF statements when you are using "equals".
Hope this helps.
- NariMar 07, 2022Nimbostratus
Hi Alex, Thank you for your response, yes finally it worekd after adding the below lines into the iRule...i thougt of captueing the host after responded to request ans somehow it worked fo rme..
if { [HTTP::has_responded] } {
return
}Thanks,
Nari