How to forward/redirect intranet.mytenant.com to mytenant.sharepoint.com? CNAME alias did not work.

frob 4,261 Reputation points
2022-03-10T01:07:31.687+00:00

Hi there

How to forward/redirect intranet.mytenant.com to mytenant.sharepoint.com?
I added a CNAME alias "Intranet" to mytenant.sharepoint.com and it did not work.

Thank you.

Microsoft 365 and Office | SharePoint Server | For business
{count} votes

Accepted answer
  1. sadomovalex 3,636 Reputation points
    2022-03-14T15:04:09.357+00:00

    if intranet.mytenant.com is under your control then you may do this:

    1. create new IIS site on some server which is publicly available wit http binding set to intranet.mytenant.com (let's say this server has IP X.Y.W.Z)
    2. in DNS editor of your provider add A record for "intranet" subdomain of "mytenant.com" domain to point to X.Y.W.Z IP address (i.e. here you point intranet.mytenant.com to the server with IIS site)
    3. in IIS site add URL rewrite rule for redirecting traffic to mytenant.sharepoint.com (as example you may check Redirect traffic from single site collection in Sharepoint on-prem via URL rewrite IIS module. But instead of redirecting from single site collection you need to redirect all traffic so instead of "test/" pattern try to use "" so it will match everything)
    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,846 Reputation points Microsoft External Staff
    2022-03-11T07:14:04.12+00:00

    @frob

    You should use following PowerShell to rename the domain.

    Connect-SPOService -Url "https://contoso-admin.sharepoint.com"  
    Start-SPOTenantRename -DomainName <DomainName> -ScheduledDateTime <YYYY-MM-DDTHH:MM:SS> [-WhatIf] [-Confirm]  
    

    Note:This feature is in public preview and currently available to organizations that have no more than 5000 total SharePoint sites and OneDrive accounts combined. If you get error 773 "Not Implemented" when you try to start a domain rename, the feature isn't enabled yet for your organization because we're still rolling it out. Try again later.

    Reference: https://learn.microsoft.com/en-us/sharepoint/change-your-sharepoint-domain-name


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.