improve ssl and www redirection