logo
search
Others

Fix Domain Verification TXT File 404 Error

Nimra MalikNimra Malik Oct 20, 2026 869 views

Question details

The user needs to resolve a 404 error that occurs when a service provider attempts to verify a domain using an uploaded TXT file.

How to Fix Domain Verification When a TXT File Returns a 404 Error
Product
cPanel / Microsoft 365
Device & OS
not provided
Scenario
Uploading a domain verification TXT file to the website's file system using cPanel File Manager.
Observed behavior
The verification URL returns a 404 error, indicating the TXT file cannot be found at the specified web address.
Before you start

Ensure you have your web hosting account credentials ready and the exact verification URL provided by the service you are trying to verify.

Solution 1Recommended

Move TXT File to the Correct Document Root

Ensure the TXT file is uploaded to the exact directory associated with the domain being verified, especially if it is an addon domain.

A common cause for a 404 error is uploading the file to the primary domain's root folder instead of the specific folder assigned to an addon domain or country-code domain.

1
Identify Document Root

Log in to cPanel, navigate to the 'Domains' section, and check the 'Document Root' column for the domain you are trying to verify.

2
Open File Manager

Click on 'File Manager' from the cPanel dashboard and navigate to the folder path identified in the previous step.

3
Move the File

If the TXT file is in the wrong folder (like the default public_html), use the 'Move' button in the top toolbar to transfer it to the correct document root.

4
Test the URL

Open a new browser tab and paste the exact verification URL to confirm the 404 error is resolved and the file contents are visible.

Move TXT File to the Correct Document Root
Domain Routing: Correcting the document root ensures incoming requests to your specific domain are routed to the proper file folder.
Free Microsoft Office alternative

Try WPS Office for a Hassle-Free Experience

If you are configuring domains for Microsoft services and want a lightweight, easy-to-use alternative to traditional office suites, WPS Office offers everything you need to create and edit documents efficiently.

Completely free to use with a familiar, intuitive interface.Highly compatible with Microsoft Office formats (Word, Excel, PowerPoint).Lightweight software that installs quickly without complex cloud configurations.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my uploaded TXT file return a 404 error?

A 404 error means the server cannot find the file. This usually happens if the file was uploaded to the wrong folder, has a typo in its name, includes a double file extension (like .txt.txt), or if the verification URL has the wrong domain extension.

How do I find the correct document root for my addon domain in cPanel?

Log into cPanel and click on the 'Domains' icon. Locate your domain in the list, and look under the 'Document Root' column. This will show you the exact folder path where your TXT file needs to be placed.

Does the domain suffix matter for domain verification?

Yes. If your actual domain ends in .com.my but the verification service is checking the .com version, it will return a 404 error. Ensure the verification URL checks the complete and exact domain name.