Restored check for www and redirect if missing