Forum Discussion
Bob_10976
Oct 29, 2008Nimbostratus
Hey sorry haven't gotten back sooner...
sklingner...I did try your suggest but it didn't work and by reviewer it i relized I had host and not URI, I changed host to URI and it still didn't work.
When changing it it URI it doesn't do anything, it was as if I didn't put in an iRule at all. But if I changed the uri back to host it would go back to the orginal problem, it rediected everything.
I tried something a bit different, its below, but again it didn't work either, nothing got redirected
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] == "subsite.mysite.com") || ([string tolower [HTTP::uri]] == "www.subsite.mysite.com")} {
HTTP::respond 301 Location http://mysite.com/
}
}
I did replace the "==" with "equals" but no difference and I did add the trailing "/" and no change...
Any suggestions?
Thanks
Bob