CraigD1_147916
Nov 13, 2015Cirrus
Please assist with redirect to prepend "www."
Hi, I am hoping someone can review my irule to determine why I get no redirection from it when.
I am attempting to prepend www. in any case where it does not already exist.
Fiddler shows 504 when attempting to access without "www." and packet capture shows f5 reply with TCP ACK, then RST after GET/ from client. When using "www." page loads fine.
Thanks!
when HTTP_REQUEST {
if { !([string tolower [HTTP::host]] starts_with "www." or "wwwq.") } {
HTTP::redirect [HTTP::host][HTTP::uri] }
}