Rename your SharePoint Online Public Website address to use your custom domain

Note   The SharePoint Online Public Website information in this article only applies if your organization purchased Office 365 prior to March 9, 2015. If you purchased Office 365 after March 9, 2015, use an Office 365 website hosting partner.

If you have an Office 365 public website, it has an initial URL that is something like www.contoso-public.sharepoint.com, where contoso is the name you chose when you signed up. To rename it, you first have to add a domain to Office 365, and then you can change your Office 365 website address to a friendlier name.

Why rename your Office 365 website? So customers can access your site by using a familiar domain that you already own, or a new domain that you’ve chosen and purchased for your business. Be sure that you design and set up your public website before you change the URL to use your domain name; for example, by adding your company name, logo, and business information.

The steps you’ll follow to rename your public website depend on two things:

  1. Which Office 365 plan you’re using.    If you have an Office 365 Small Business plan, which is no longer available for purchase, there’s a separate set of steps to follow. If you have a different Office 365 plan, follow the steps in this topic.

  2. Whether you or Office 365 manage your domain’s DNS records.    In the setup wizard where you add your domain, you choose whether to have Office 365 manage your domain’s DNS records, or to keep managing the DNS records yourself at your current DNS host. You’ll follow different steps in this article, depending on which option you picked. (Learn more about how your domain’s Office 365 records are managed.)

These steps do not change the name of your team site because you can't rename a team site in Office 365. Your team site name stays yourcompany.sharepoint.com.

Pick one of the following:

Steps to rename your website: When Office 365 manages your domain’s DNS records

Steps to rename your website: When you manage your domain’s DNS records outside Office 365

A few things to keep in mind

Steps to rename your website: When Office 365 manages your domain’s DNS records

  1. If you haven’t done so already, set up your domain with Office 365. To get started, on the Admin page in Office 365, click Domains, then click Add domain. Then follow the steps in the setup wizard.

    O365_Adddomain_wizard_1_1
  2. Now, back on the Admin page, click Public website, and then, under Manage your existing SharePoint public website, click Get started.

    O365_PublicWebsite_SPO
  3. Choose Start now.

  4. Choose either Yes or No (it doesn't matter which one you choose here) when asked if you have a public website you're using, then choose Next.

  5. Choose Step 4, Change your website address to www.yourcompany.com.

  6. For the question Are you ready to change the address of the website you created in Office 365?, choose Yes, and then click Next.

    O365_PublicWebsite_SPO_Step4
  7. In the Select a domain drop-down list, select the domain you want to use, then click Next.

  8. Go to the SharePoint admin center (in a new tab in your browser), and rename your public website there.

    • Select your public website, like contoso-public.sharepoint.com.

    • In the ribbon, click Rename Website.

    • In the Rename your website dialog box, in the New domain drop-down box, choose your domain, like http://www.contoso.com.

      Click OK.

  9. Back in the tab with the wizard, click Next.

You can now go to your website using your custom domain, for example: http://www.contoso.com/, instead of your temporary Office 365 domain, for example: http://www.contoso-public.sharepoint.com/.

Steps to rename your website: When you manage your domain’s DNS records outside Office 365

  1. If you haven’t done so already, set up your domain with Office 365. To get started, on the Admin page in Office 365, click Domains, then click Add domain. Follow the steps in the setup wizard to set up your domain.

    O365_Adddomain_wizard_1_1
  2. On the Admin page, click Public website, and then, under Manage your existing SharePoint public website, click Get started.

    O365_PublicWebsite_SPO
  3. Choose Start now.

  4. Choose either Yes or No (it doesn't matter which one you choose here) when asked if you have a public website you're using, then choose Next.

  5. Choose Step 4, Change your website address to www.yourcompany.com.

  6. For the question Are you ready to change the address of the website you created in Office 365, choose Yes, and then click Next.

    O365_PublicWebsite_SPO_Step4
  7. In the Select a domain drop-down list, select the domain you want to use, then click Next.

  8. Go to the SharePoint admin center (in a new tab in your browser), and rename your public website there.

    • Select your public website, like contoso-public.sharepoint.com.

    • In the ribbon, click Rename Website.

    • In the Rename your website dialog box, in the New domain drop-down box, choose your domain, like http://www.contoso.com.

      Click OK.

  9. Back in the tab with the wizard, click Next.

  10. On the Add these DNS records page, you’ll see a CNAME record to add for your domain at your DNS host. Use the following values for the CNAME record (these may not match what you see on the wizard page):

    • Host name: Use www

    • Points to address: Use name.sharepoint.com, where name is your custom domain name. For example, contoso.sharepoint.com.

    • TTL: Use 1 hour

    If you need help adding the record, go to the step-by-step instructions link, and choose your DNS host from the list.

  11. Wait about 15 minutes, and then click Done, go check.

You can now go to your website using your custom domain, for example: http://www.contoso.com/, instead of your temporary Office 365 domain, for example: http://www.contoso-public.sharepoint.com/.

A few things to keep in mind

When you change your website to use your custom domain, keep in mind the following.

  • If you want to keep your current public website, hosted outside of Office 365, instead of using a public website that uses your domain on Office 365, you can. To learn how, see Update DNS records to keep your website with your current hosting provider.

  • If you rename your Office 365 website, you can change the site name later to use another custom domain, or change back to the original URL, for example, contoso-public.sharepoint.com. To do this, change the CNAME record (as described in the earlier steps) to point to use a different domain name, such as going back to the original domain, like contoso-public.sharepoint.com

  • The steps above help make sure users can see your website when they type, for example, www.contoso.com. If you also want them to see your site when they type just the root domain, contoso.com, contact your DNS hosting provider and ask if they have a URL redirection service to direct traffic from contoso.com to www.contoso.com. Most providers offer URL redirection, and you can check their documentation to learn how to set it up.

Top of Page

Applies To: SharePoint Online



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language