Fix Domain Verification TXT File 404 Error
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.

- 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.
Ensure you have your web hosting account credentials ready and the exact verification URL provided by the service you are trying to verify.
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.
Log in to cPanel, navigate to the 'Domains' section, and check the 'Document Root' column for the domain you are trying to verify.
Click on 'File Manager' from the cPanel dashboard and navigate to the folder path identified in the previous step.
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.
Open a new browser tab and paste the exact verification URL to confirm the 404 error is resolved and the file contents are visible.

Verify File Name, Extension, and Domain Suffix
Check for typos in the file name or incorrect domain suffixes in the verification URL.
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.

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.




