Why is my website when using www inaccessible? asp.net

195 Views Asked by At

If I access : https://example.com, it works. The website can be accessed

But if I access : https://www.example.com, it can't be accessed like this :

error page

Do I need settings in web.config?

1

There are 1 best solutions below

7
Michael Wang On

add domainwww.example.com to Azure. See the details below.

https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/add-custom-domain