New subdomain returns 404 for all uploaded files

Is this the 404 error you see as well?

Because that’s the page I see when I try to access https://aquasalt-demo.freedev.app//hello.txt, and that page is 100% the 404 error page from Laravel, not from our hosting.

I had a quick look at the .htaccess file in the htdocs folder, and it appears to be completely custom. I suspect the error is in there. I have written a different guide on how to setup Laravel that uses different .htaccess rules that have been tested on our hosting.

I wouldn’t worry about this too much for a quick test, but one simple but effective way to do this is to setup temporary IP allowlisting on your website.

To do so, instead of completely removing the .htaccess file, replace it with a file that only has this line:

Require ip xx.xx.xx.xx

Replace the xx.xx.xx.xx with your own IP address.

That way, only you and other people on your IP address can access your website, while blocking the rest of the world.

Another option is by using Password Protected Directories, but that’s more likely to break if you’re moving .htaccess files around, so I wouldn’t recommend that approach.