# Page loads fine, but all static files return 404 on localhost

**URL:** <https://forum.getkirby.com/t/page-loads-fine-but-all-static-files-return-404-on-localhost/24218>\
**Category:** Questions\
**Tags:** v3\
**Created:** [December 12, 2021, 5:00am UTC](https://forum.getkirby.com/t/page-loads-fine-but-all-static-files-return-404-on-localhost/24218 "2021-12-12T05:00:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bytesource](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bytesource/32/11277_2.png) [@bytesource](https://forum.getkirby.com/u/bytesource)\
**Post date:** [December 12, 2021, 5:00am UTC](https://forum.getkirby.com/t/page-loads-fine-but-all-static-files-return-404-on-localhost/24218/1 "2021-12-12T05:00:26Z")

</div>

Hi,

After installing the Starter kit, I noticed that all static files (JS, CSS) return 404 on localhost.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/3/36193fb99f6ad689e8d5e21966212a0564542528.png)

The page loads just fine (minus the styling).

As the same happens with the installation I just bought, I suspect this to be a server issue.

The problem is, I have no idea where to look, but maybe this information is of some help:

- Kirby: 3.6.1.1
- Wampserver 3.2.6
- PHP 8.1.0
- Apache 2.4.39
- Windows 10

Any suggestions are highly welcome!

Cheers,

Stefan

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [December 12, 2021, 10:31am UTC](https://forum.getkirby.com/t/page-loads-fine-but-all-static-files-return-404-on-localhost/24218/2 "2021-12-12T10:31:40Z")

</div>

Does the error with the assets only exist on subpages or also on the home page?

---

<div class="post-metadata">

**Author:** ![bytesource](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bytesource/32/11277_2.png) [@bytesource](https://forum.getkirby.com/u/bytesource)\
**Post date:** [December 12, 2021, 12:42pm UTC](https://forum.getkirby.com/t/page-loads-fine-but-all-static-files-return-404-on-localhost/24218/3 "2021-12-12T12:42:51Z")

</div>

The same issue appears on the home page.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/d/d794d53005dbd264305ec3fd36988877f036488f.jpeg)

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/7/75353c6b895dd8db8a74cd76d3cb170a0056a145.png)

Could it be that I have to install some Apache module to display these files?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [December 12, 2021, 1:32pm UTC](https://forum.getkirby.com/t/page-loads-fine-but-all-static-files-return-404-on-localhost/24218/4 "2021-12-12T13:32:49Z")

</div>

Is the `/assets` folder and subfolders/files readable? Does the Panel work?

---

<div class="post-metadata">

**Author:** ![bytesource](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bytesource/32/11277_2.png) [@bytesource](https://forum.getkirby.com/u/bytesource)\
**Post date:** [December 12, 2021, 1:39pm UTC](https://forum.getkirby.com/t/page-loads-fine-but-all-static-files-return-404-on-localhost/24218/5 "2021-12-12T13:39:18Z")

</div>

The Panel works fine, too.

As for the `/assets` folder, yes, I think it’s readable:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/0/015f2981e2110ef1ca68d6bfbe9f420da2e77334.png)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [December 12, 2021, 1:46pm UTC](https://forum.getkirby.com/t/page-loads-fine-but-all-static-files-return-404-on-localhost/24218/6 "2021-12-12T13:46:46Z")

</div>

But why are the assets inside the `site` folder in your project? Did you move that folder there? The assets folder must be in the project’s root.

Standard folder structure after downloading Starterkit:

 ![Bildschirmfoto 2021-12-12 um 14.48.36](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/c/cbbca30c8913c4fc79947faea4e2c62f5c36efe5.png)

Direct access to the site folder is locked by `.htaccess` settings for security reasons.

---

<div class="post-metadata">

**Author:** ![bytesource](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bytesource/32/11277_2.png) [@bytesource](https://forum.getkirby.com/u/bytesource)\
**Post date:** [December 13, 2021, 12:31am UTC](https://forum.getkirby.com/t/page-loads-fine-but-all-static-files-return-404-on-localhost/24218/7 "2021-12-13T00:31:41Z")

</div>

Wow, you are right. I don’t recall having moved the folder, but apparently I must have… only to repeat the same mistake in my installation, where I added `/assets` later.

Thank you so much for pointing me to my mistake. Everything’s working fine, now

Cheers,

Stefan
