I’ve been testing my live site extensively this past month, posting, reposting and then I found my site’s Google search results come up with broken links. If you ever need to update your site with new URLs on existing resources, you want to think about the SEO implications first.
Last time I set up Custom Domain and HTTPS for my Azure web app, there remains an issue - my website can be accessed from both the root domain fanray.com and the www.fanray.com subdomain. This is bad for SEO, we need to tell search engine which one we prefer, hence we have to decide on a Preferred Domain either www or non-www. The one you choose will be the one that will be used to index your site's pages and be used for your site in the search results.
When you create an Azure Web app, you are given an Azure website URL like mine fanray.azurewebsites.net, in this post I will show how to 1) use my custom domain fanray.com instead of fanray.azurewebsites.net and 2) buy an SSL certificate so my site URL can use HTTPS instead of HTTP.