Forum Discussion
hooleylist
Mar 25, 2011Cirrostratus
Sure:
when HTTP_REQUEST {
Check if the host does not start with www.
if {not ([string tolower [HTTP::host]] starts_with "www.")}{
Redirect with the www. prefix to the same URI
HTTP::redirect "http://www.[HTTP::host][HTTP::uri]"
}
}
Aaron