Forum Discussion
HTTP host and uri, and if there's a match, rewrite uri and redirect to new host- works if refresh
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.
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
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com