Forum Discussion
hooleylist
Aug 22, 2011Cirrostratus
@bmoran- can you explain how this line works? Are you taking every host request and if it has the www. on it, strip it off and add the https://www.?
HTTP::redirect https://www.[string trimleft [HTTP::host] "www."][HTTP::uri]
That's exactly it. I'm not sure whether that's more efficient than having a separate switch case for host values starting with www., but you have a good understanding of what that line is doing.
Aaron