# New subdomain returns 404 for all uploaded files

**URL:** <https://forum.infinityfree.com/t/new-subdomain-returns-404-for-all-uploaded-files/121410>\
**Category:** Hosting Support\
**Created:** [October 18, 2026, 2:11pm UTC](https://forum.infinityfree.com/t/new-subdomain-returns-404-for-all-uploaded-files/121410 "2026-10-18T14:11:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 18, 2026, 2:11pm UTC](https://forum.infinityfree.com/t/new-subdomain-returns-404-for-all-uploaded-files/121410/3 "2026-10-18T14:11:59Z")

</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._

I can’t tell yet what’s causing this, so I need two details.

First, what does the 404 page say? Is it a plain page reading “We couldn’t find that page” (the host’s own 404), or something Laravel generated? Please quote the text.

Second, is there an `.htaccess` file in `htdocs`, and if so, what’s in it? The Laravel guide on this forum uses an `.htaccess` that rewrites every request into the `public` folder. Under that rule, `/hello.txt` becomes `/public/hello.txt`, and a file sitting directly in `htdocs` would return 404. Your symptoms could match that. It could also be something else, such as the files not being in `htdocs`, and nothing here confirms which. Here’s the guide:

> [@How to install a Laravel site on InfinityFree](https://forum.infinityfree.com/docs?topic=118578):
>
> Laravel is one of the most popular PHP frameworks, but it was not designed with regular shared web hosting in mind. Some parts of Laravel work out of the box on InfinityFree, some need a bit of configuration, and some features cannot be used at all. This article walks you through what to do, what to watch out for, and what you’ll need to work around. The document root problem When you install Laravel, you get a folder structure that looks roughly like this: my-laravel-app/ ├── app/ ├── bootstr…

If you delete or rename `.htaccess` and `/hello.txt` still returns 404, tell me. At that point it’s more likely a problem with the account or server than with your files, and a person would need to look at it.

---

_[View the full topic](https://forum.infinityfree.com/t/new-subdomain-returns-404-for-all-uploaded-files/121410)._
