# Custom domain returns InfinityFree 404 for every file

**URL:** <https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506>\
**Category:** Hosting Support\
**Created:** [October 22, 2026, 1:42pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506 "2026-10-22T13:42:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![edem777](https://forum.infinityfree.com/letter_avatar/edem777/32/6_449c533f586939b6e5f246632a46421f.png) [@edem777](https://forum.infinityfree.com/u/edem777)\
**Post date:** [October 22, 2026, 1:42pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/1 "2026-10-22T13:42:49Z")

</div>

### Website URL

[http://daarusmartcleaningandlaundry.com/](http://daarusmartcleaningandlaundry.com/)

### Error Message

Hello InfinityFree Support,

My domain [daarusmartcleaningandlaundry.com](http://daarusmartcleaningandlaundry.com) displays the InfinityFree “404! We couldn’t find that page” error.

My hosting dashboard shows:

Domain: [daarusmartcleaningandlaundry.com](http://daarusmartcleaningandlaundry.com)

Directory: [daarusmartcleaningandlaundry.com/htdocs](http://daarusmartcleaningandlaundry.com/htdocs)

Hosting IP: 185.27.134.129

Both the root domain and www resolve to the expected IP through Google and Cloudflare DNS.

The directory contains WordPress files, including index.php, wp-admin, wp-content, wp-includes, and .htaccess. I also created a simple test file named diagnostic-check-731.html in the domain’s htdocs directory, but accessing it returns the same InfinityFree 404 page.

Could you please check whether the domain’s web-server mapping or virtual-host configuration is correctly pointing to [daarusmartcleaningandlaundry.com/htdocs](http://daarusmartcleaningandlaundry.com/htdocs)?

I have not deleted or reinstalled WordPress.

Thank you.

### Other Information

Kindly help fix this issue.

---

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [October 22, 2026, 1:43pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/2 "2026-10-22T13:43:08Z")

</div>

_Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look._

Can you tell me the exact path of `diagnostic-check-731.html` as your FTP client or the file manager shows it, starting from the very top of the account? And does the same test file load if you open it under your free `great-site.net` subdomain, which is on the same account?

The first answer shows whether the folder you uploaded to is the one the domain is linked to. The second shows whether the problem is specific to the custom domain.

Our article on this error says that a 404 on every URL usually means the domain’s linked folder doesn’t exist on the account. It can also mean the files aren’t in that exact folder. The article tells you to compare the folder listed on the Domains page of the client area with what’s actually in your file listing:

> [@Redirected to InfinityFree 404 error page](https://forum.infinityfree.com/docs?topic=49355):
>
> While working on your website, you may be redirected to the [InfinityFree 404 error page](https://infinityfree.net/errors/404/). This article explains why this typically happens and what you can do to fix this. Why do I get a 404 error When you try to access a file on a website, the server tries to find the matching file to load. By default, it works like this. Suppose you have a website [http://example.com](http://example.com) which is linked to the folder htdocs in your hosting account. If you then try to load a certain URL, like [http://example.com/blo…](http://example.com/blog/images/gallery/photo.jpg)

It also says a `.htaccess` rewrite rule can send everything to the 404 page. That’s less likely here, since a plain `.html` file fails too. The article is general, though, and I can’t tell from your post which of these applies to you.

---

<div class="post-metadata">

**Author:** ![WebburnsTech\_Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/webburnstech_admin/32/67453_2.png) [@WebburnsTech\_Admin](https://forum.infinityfree.com/u/WebburnsTech_Admin)\
**Post date:** [October 22, 2026, 1:46pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/3 "2026-10-22T13:46:21Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/3X/e/b/eb548a042b9d5358d907803bf264536497c50ab3.png)

It is working for me

---

<div class="post-metadata">

**Author:** ![edem777](https://forum.infinityfree.com/letter_avatar/edem777/32/6_449c533f586939b6e5f246632a46421f.png) [@edem777](https://forum.infinityfree.com/u/edem777)\
**Post date:** [October 22, 2026, 1:56pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/4 "2026-10-22T13:56:28Z")

</div>

Thank you for the screenshot. It confirms that the custom domain can load a WordPress page. On my side, the custom domain is returning the InfinityFree 404, including for a standalone HTML diagnostic file. I’ll test the same file through the free subdomain to determine whether this is a domain-specific issue or a directory issue. I won’t reinstall WordPress or delete any existing files while investigating.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 22, 2026, 2:25pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/5 "2026-10-22T14:25:41Z")

</div>

The current account was created less than 24 hours ago, and the domain was on a different account before then. It’s a known issue that when you remove a domain name, the domain will show a 404 error on the old IP address for a while.

When moving the domain name to a new account, it gets assigned to a different IP address. You generally don’t need to do anything, we make the required DNS changes in our nameservers, but it does mean that you have to deal with DNS cache, which means it might take up to 72 hours for all visitors to be able to reach your site again.

So nothing is wrong, and the issue will solve itself automatically in a day or two at most.

Just be aware that this happens when you move domains between accounts. I don’t know why you moved the domain to a different account, but keep in mind that the process is not seamless next time you consider going this route.

---

<div class="post-metadata">

**Author:** ![edem777](https://forum.infinityfree.com/letter_avatar/edem777/32/6_449c533f586939b6e5f246632a46421f.png) [@edem777](https://forum.infinityfree.com/u/edem777)\
**Post date:** [October 22, 2026, 2:28pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/6 "2026-10-22T14:28:30Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![edem777](https://forum.infinityfree.com/letter_avatar/edem777/32/6_449c533f586939b6e5f246632a46421f.png) [@edem777](https://forum.infinityfree.com/u/edem777)\
**Post date:** [October 22, 2026, 2:19pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/7 "2026-10-22T14:19:15Z")

</div>

### Website URL

[https://daarusmartcleaningandlaundry.com/](https://daarusmartcleaningandlaundry.com/)

### Error Message

**Update: DNS is correct, but my custom domain still returns 404**

Hello InfinityFree Support,

My domain [daarusmartcleaningandlaundry.com](http://daarusmartcleaningandlaundry.com) is still not working correctly.

My hosting dashboard shows:

- Domain: [daarusmartcleaningandlaundry.com](http://daarusmartcleaningandlaundry.com)
- Directory: [daarusmartcleaningandlaundry.com/htdocs](http://daarusmartcleaningandlaundry.com/htdocs)
- Hosting IP: 185.27.134.129

Both InfinityFree authoritative nameservers return 185.27.134.129 for the root domain and www. Google DNS and Cloudflare now also return the expected IP.

However, these direct connection tests fail:

HTTP: curl returns error 52, “Empty reply from server”.

HTTPS: curl returns error 56, “Failure when receiving data from the peer”.

My htdocs directory contains WordPress core files, including index.php, wp-admin, wp-content, wp-includes, and .htaccess. A standalone HTML diagnostic file in that directory also displays the InfinityFree 404 page.

Another forum member shared a screenshot showing WordPress loading on my

### Other Information

Kindly help fix it.

---

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [October 22, 2026, 2:19pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/8 "2026-10-22T14:19:30Z")

</div>

_Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look._

Your post got cut off after “Another forum member shared a screenshot showing WordPress loading on my”, so I’m missing the end of it.

Two things would help narrow this down:

1. In your FTP client, what is the full path to the folder that holds `index.php` and `wp-admin`? Is it `/daarusmartcleaningandlaundry.com/htdocs/`, or a plain `/htdocs/` at the top level of the account?
2. Does the same standalone HTML file load if you open it on your free subdomain under [great-site.net](http://great-site.net)? That would show whether the files are the problem or only the custom domain’s link to them.

I’m asking because a 404 from the InfinityFree error page, even for a plain HTML file, usually means the server can’t find the file in the folder your domain points to. The knowledge base article on this says every URL on a domain returns the 404 page if its website folder is missing or the files aren’t in it:

> [@Redirected to InfinityFree 404 error page](https://forum.infinityfree.com/docs?topic=49355):
>
> While working on your website, you may be redirected to the [InfinityFree 404 error page](https://infinityfree.net/errors/404/). This article explains why this typically happens and what you can do to fix this. Why do I get a 404 error When you try to access a file on a website, the server tries to find the matching file to load. By default, it works like this. Suppose you have a website [http://example.com](http://example.com) which is linked to the folder htdocs in your hosting account. If you then try to load a certain URL, like [http://example.com/blo…](http://example.com/blog/images/gallery/photo.jpg)

Your DNS looks fine. The IP you quote matches the one for your active account, so I don’t think DNS is the problem.

---

<div class="post-metadata">

**Author:** ![edem777](https://forum.infinityfree.com/letter_avatar/edem777/32/6_449c533f586939b6e5f246632a46421f.png) [@edem777](https://forum.infinityfree.com/u/edem777)\
**Post date:** [October 22, 2026, 2:21pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/9 "2026-10-22T14:21:33Z")

</div>

> [@Lemni](#):
>
> 1. daarusmartcleaningandlaundry

/daarusmartcleaningandlaundry.com/htdocs

---

<div class="post-metadata">

**Author:** ![edem777](https://forum.infinityfree.com/letter_avatar/edem777/32/6_449c533f586939b6e5f246632a46421f.png) [@edem777](https://forum.infinityfree.com/u/edem777)\
**Post date:** [October 22, 2026, 2:24pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/10 "2026-10-22T14:24:43Z")

</div>

I checked the full filesystem path in File Manager. The directory is:

`/home/vol14_5/infinityfree.com/if0_43239284/daarusmartcleaningandlaundry.com/htdocs`

The WordPress files and my diagnostic HTML file are in this directory. The diagnostic file still returns the InfinityFree 404 page. Please verify that the custom domain’s web server is mapped to this exact filesystem path.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 22, 2026, 3:05pm UTC](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/11 "2026-10-22T15:05:37Z")

</div>

I already wrote before about why this is happening.

> [@Custom domain returns InfinityFree 404 for every file](https://forum.infinityfree.com/t/custom-domain-returns-infinityfree-404-for-every-file/121506/5):
>
> The current account was created less than 24 hours ago, and the domain was on a different account before then. It’s a known issue that when you remove a domain name, the domain will show a 404 error on the old IP address for a while. When moving the domain name to a new account, it gets assigned to a different IP address. You generally don’t need to do anything, we make the required DNS changes in our nameservers, but it does mean that you have to deal with DNS cache, which means it might take …

Please don’t create multiple topics about the same issue. It won’t help you get an answer any question, is just makes the communication a mess.
