remove open www in server function