# Php file return 404 not found inside htdocs

**URL:** <https://forum.infinityfree.com/t/php-file-return-404-not-found-inside-htdocs/121381>\
**Category:** Hosting Support\
**Created:** [October 17, 2026, 2:20am UTC](https://forum.infinityfree.com/t/php-file-return-404-not-found-inside-htdocs/121381 "2026-10-17T02:20:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaryannTech](https://forum.infinityfree.com/letter_avatar/maryanntech/32/6_449c533f586939b6e5f246632a46421f.png) [@MaryannTech](https://forum.infinityfree.com/u/MaryannTech)\
**Post date:** [October 17, 2026, 2:20am UTC](https://forum.infinityfree.com/t/php-file-return-404-not-found-inside-htdocs/121381/1 "2026-10-17T02:20:55Z")

</div>

### Website URL

[https://jabinarfoodstore.site.je/](https://jabinarfoodstore.site.je/)

### Error Message

My existing website loads, but newly created PHP files return 404 Not Found, even when placed directly inside “htdocs”.

### Other Information

I confirmed that `phpcheck123.php` exists directly inside `htdocs`, but opening `https://jabinarfoodstore.site.je/phpcheck123.php` still returns the InfinityFree 404 page. The main website continues to load. The domain document root points to `htdocs`.

Hello, I still have the same problem with my website.

My main website, [https://jabinarfoodstore.site.je/](https://jabinarfoodstore.site.je/), opens normally, but PHP test files return 404 Not Found.

I confirmed that “index.html”, “index.php”, and “phpcheck123.php” are inside the “htdocs” folder. I also tried creating a PHP test file inside a subfolder, but it also returned 404.

Could you please check whether my domain is correctly connected to my hosting directory and whether PHP files are being served correctly?

Thank you for yo

ur help.

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [October 17, 2026, 8:41am UTC](https://forum.infinityfree.com/t/php-file-return-404-not-found-inside-htdocs/121381/2 "2026-10-17T08:41:15Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/3X/5/b/5bce1de7f94d61af7568218893d7c6586be27902.png)  
Its working.

You may have an older version of the page cached so try clearing your browser cache first (it shouldn’t cache php pages, but some browsers are strange like that)

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [November 1, 2026, 8:42am UTC](https://forum.infinityfree.com/t/php-file-return-404-not-found-inside-htdocs/121381/3 "2026-11-01T08:42:07Z")

</div>

Closed on November 1, 2026, 8:42am UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
