Forum Discussion

Jim_Mathers_131's avatar
Jim_Mathers_131
Icon for Nimbostratus rankNimbostratus
Oct 27, 2014

simplest method to strip "www." from Host field then HTTPS redirect

Hey folks, my requirements are simple: If the Host header in the HTTP request starts with “www.”, strip “www.” then redirect to HTTPS. If “www.” is not in the Host header, preserve the Hos...