How to Fix Microsoft 365 Custom Domain Verification File Errors
Question details
The user needs to resolve an issue where Microsoft 365 cannot verify custom domain ownership due to inaccessible verification files.

- 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.
Ensure you have access to your domain's DNS management panel and your website's root directory via FTP or your hosting control panel.
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.
Log into your website hosting control panel or connect to your server via an FTP client.
Upload the Microsoft 365 verification file directly to the root folder (typically named public_html, www, or htdocs).
Open a web browser and navigate to the exact file URL (e.g., http://yourdomain.com/filename.txt).
Ensure the text file loads directly without HTTP redirects, password prompts, or 404 HTML error pages.

Use DNS TXT Verification Method Instead
If the file verification method fails due to complex website configurations, verifying via a DNS TXT record is often more reliable.
Contact Microsoft Support
If both file and DNS verification methods fail, request remote assistance from Microsoft to investigate the issue.
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. Download WPS Office: Visit the official WPS website and download the installer for your operating system.
- 2. Install the Software: Run the installer and follow the on-screen instructions to complete the setup in seconds.
- 3. Open and Edit Documents: Launch WPS Office to easily create, open, and edit your Microsoft Office files without a paid subscription.

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.




