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

Hi,

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

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

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

The same issue appears on the home page.

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

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

The Panel works fine, too.

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

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:

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

1 Like

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