logo
search
Others

How to Fix Microsoft 365 Custom Domain Verification File Errors

Nimra MalikNimra Malik Oct 8, 2026 869 views

Question details

The user needs to resolve an issue where Microsoft 365 cannot verify custom domain ownership due to inaccessible verification files.

How to Fix Microsoft 365 Custom Domain Verification File Errors
Product
Microsoft 365
Device & OS
not provided
Scenario
Setting up a custom domain in the Microsoft 365 admin center.
Observed behavior
Microsoft 365 fails to verify the domain because the required verification file cannot be found or accessed at the public website URL.
Before you start

Ensure you have access to your domain's DNS management panel and your website's root directory via FTP or your hosting control panel.

Solution 1Recommended

Verify File Placement and URL Accessibility

Ensure the verification file is placed in the correct directory and is accessible without any restrictions.

Microsoft 365 requires the verification text file to be accessible directly from the root of your domain. Any redirects or authentication barriers will cause the verification to fail.

1
Access Website Root

Log into your website hosting control panel or connect to your server via an FTP client.

2
Upload the File

Upload the Microsoft 365 verification file directly to the root folder (typically named public_html, www, or htdocs).

3
Test URL Directly

Open a web browser and navigate to the exact file URL (e.g., http://yourdomain.com/filename.txt).

4
Check for Redirects

Ensure the text file loads directly without HTTP redirects, password prompts, or 404 HTML error pages.

Verify File Placement and URL Accessibility
Check HTTP and HTTPS: Microsoft tests both HTTP and HTTPS protocols. Ensure your site does not force an invalid SSL redirect that blocks access to the verification file.
Free Microsoft Office alternative

Try WPS Office: The Ultimate Free Alternative to Microsoft 365

While domain setup requires Microsoft 365 admin access, your everyday document tasks don't have to rely on expensive subscriptions. WPS Office provides a lightweight, highly compatible, and free alternative to Word, Excel, and PowerPoint.

  1. 1. Download WPS Office: Visit the official WPS website and download the installer for your operating system.
  2. 2. Install the Software: Run the installer and follow the on-screen instructions to complete the setup in seconds.
  3. 3. Open and Edit Documents: Launch WPS Office to easily create, open, and edit your Microsoft Office files without a paid subscription.
Fully compatible with Microsoft Office formats like .docx, .xlsx, and .pptx.Free to download and use with a familiar, user-friendly interface.Lightweight installation that runs smoothly across Windows, Mac, Linux, and mobile devices.Seamlessly transition your existing files without worrying about formatting issues.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft 365 say my verification file cannot be found?

This usually happens if the file is uploaded to the wrong directory, your website forces a redirect (like HTTP to HTTPS) that breaks the Microsoft bot, or a firewall block prevents automated access.

How long does domain verification take in Microsoft 365?

File verification is usually instantaneous once the file is accessible. If you use DNS verification (TXT or MX records), it can take anywhere from 10 minutes to 48 hours depending on your DNS provider's propagation time.

Can I delete the verification file after my domain is verified?

Yes, once Microsoft 365 successfully verifies your domain ownership, you can safely remove the text file from your website's root directory without affecting your domain status.