Hi everyone! In my last blog post I showed you how to fire up your very own WordPress site using Azure. Now that you have the site, don’t you want to know how to change the name to a better, cooler name, without the ‘.azurewebsites.net’?
If you have a WordPress Site that is not being hosted in Azure, learn how to map a domain name to remove the ‘wordpress.com’ ending to your website.
Otherwise, follow these steps to link your own custom domain name to your Azure website.
- First things first, in order to use a custom domain name, your website needs to have at least a shared service plan. Unfortunately, you cannot use the free tier to use a custom domain. On your website dashboard in The Management Portal, select the scale tab and change the app service plan pricing tier section to use at least shared.
- Next, go to the configure tab under the website dashboard.
- Scroll down to the domain names section and select the ‘Manage Domain Names’ button.
- At the bottom of the popup, there is a bolded section that says ‘The IP address to use when you configure A records’. Copy the IP address that shows up.
- Next, go to your domain hosting website. The one I use is on Go Daddy. Each site will look a little bit different, but the overall concept the same.
- When you go to manage your domain, there should be a place to edit your DNS Zone Files.
- If you already have an A record under “A (Host)” edit the IP address that the root (@) points to. Paste the IP address that you copied before.
- If you do not have an A record, click on “Add Record” and set the host to be @ for root. Use the IP address that you copied in step (4) as the address it points to.
- Next, you need to create two CNAME records.
- One with an “awverify” host that points to “awverify.example.azurewebsites.net”. Be sure to replace example with your Azure website name. Change the TTL setting to 1/2 hour, to ensure that your website pushes updates faster.
- The second record links your website to the “www” version of your website. The host name is “www” and should point to your Azure website URL, “example.azurewebsites.net”. Change the TTL setting to 1/2 hour, to ensure that your website pushes updates faster.
- Don’t worry, we’re almost there!
- Go back to the “domain names” section in the Azure Management Portal, click the “manage domains” button, and add your websites! Be sure to add your website with and without “www” at the beginning.
- FINALLY…THE LAST STEP 🙂 Go to your WordPress dashboard. Under the general settings tab, change the WordPress Address (URL) and Site Address (URL) to your custom domain name. It might take a few minutes for your website to update.
AND THUS, YOU ARE COMPLETE 🙂 Go Check out your super cool website!