JAY the way i do it its when i create the domain name in aaPanel, i simply add the www.domain.com on it as well on the time of the creation, then i dont need to do anything else, I also use the DNS manager, and my registar has the www added on the cname as well. This is my method, works perfectly on www or without it. Hope that helps you.