I have developed a website through nopcommerce and everything works just fine, while testing I found that when I add www to my domain www.mydomain.com it doesnt work but when i hit mydomain.com it works just fine.
I found many replies for the same problem but none of them seem to have solved my problem, I also tried below https://blogs.iis.net/owscott/iis-url-rewrite-rewriting-non-www-to-www
by using url rewrite it throws 500 error.
Please help
After looking up the domain with www using MXToolbox it was found that no record was found. So suggested fix was to add www cname dns record for the domain by logging into domain provider panel.