Others

Redirect a DNS Alias to a SharePoint Online URL

Huma Ashraf ChHuma Ashraf Ch Nov 20, 2026 869 views

Question details

The user wants a custom DNS alias to direct visitors to a child SharePoint Online URL.

How to Redirect a DNS Alias to a SharePoint Online URL
Product
SharePoint Online
Device & OS
not provided
Scenario
Provide a custom address that sends users to a specific SharePoint Online site or child page.
Observed behavior
SharePoint Online does not provide a built-in way to bind a custom DNS alias directly to a child URL or automatically reproduce an IIS redirect.
Before you start

Identify the exact SharePoint Online destination URL and confirm that you can manage DNS for the custom hostname. Choose a redirect service that supports HTTPS for that hostname and can obtain or use a valid TLS certificate.

Solution 1Recommended

Use an External HTTPS Redirect for the SharePoint URL

Use a web redirect service or web server to forward the custom hostname to the required SharePoint Online address.

DNS maps hostnames to destinations; it does not redirect a browser to a specific URL path. The external service must receive the request and return an HTTP redirect to SharePoint Online.

1
Configure the redirect

In your redirect provider's dashboard or web server configuration, add the custom hostname and set the destination to the full SharePoint Online URL, including the desired site or page path.

2
Enable HTTPS

Use the provider's HTTPS or certificate settings to provision a valid TLS certificate for the custom hostname. Confirm that the service can accept HTTPS requests before relying on the alias.

3
Update DNS

In your domain's DNS management console, add the A or CNAME record specified by the redirect provider for the custom hostname. Do not point a CNAME directly at SharePoint Online as a substitute for the redirect service.

4
Test the address

Open the custom HTTPS address in a browser and confirm that it redirects to the intended SharePoint URL. Test in a private browsing window to check the Microsoft 365 sign-in flow and verify any required path or query-string behavior.

Use an External HTTPS Redirect for the SharePoint URL
Redirects do not grant access: Users must still sign in and have permission to access the destination. After the redirect, the browser normally displays the SharePoint Online URL.
Free Microsoft Office alternative

Work With SharePoint Documents in WPS Office

WPS Office is a free, lightweight alternative for editing Office documents downloaded from SharePoint. Its familiar interface and Microsoft Office format support make it easy to move between applications. It does not configure SharePoint redirects or DNS.

Edit supported documents downloaded from SharePoint OnlineOpen and save common Microsoft Office formats, including DOCX, XLSX, and PPTXUse familiar document, spreadsheet, and presentation toolsGet a free, lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

Can a CNAME point directly to a SharePoint child page?

No. A CNAME maps one hostname to another and cannot specify a URL path. Configure an external HTTPS redirect service to send visitors to the full SharePoint page URL.

Will users still need to sign in to SharePoint?

Yes. The redirect only sends the browser to SharePoint Online; Microsoft 365 authentication and the destination's permissions still apply.

Will the custom hostname remain in the browser address bar?

With a standard HTTP redirect, the browser navigates to and displays the SharePoint Online destination URL.

Can I use the SharePoint Migration Tool to create the alias?

No. The SharePoint Migration Tool moves content to SharePoint or OneDrive; it does not configure DNS aliases or web redirects.

Will the redirect preserve paths and query strings?

That depends on the redirect service and its rules. Check the provider's redirect settings, specify the behavior you need, and test the custom URL with representative paths and query strings.