Failed to load resource: the server responded with a status of 404 () => php file and js file


I have a problem with my site (site name: samplustech). My site is deployed automatically from commits to my repository on GitHub.

My problem:

  • On my site I have a form that uses code from a php file. When I click on that form’s submite button, in the developer tools network tab I get Not found (screen shot attached). I have downloaded the deployed files and in that path /assets/php/mail.php the file is present.

This is a screen shot of the deployed files:

hi there, we don’t support straight-up PHP on netlify, so this might be the cause of the problem.

Here is a good summary of what you can and can not do on Netlify you might find helpful:

1 Like

Thank you! Will consider using Functions.

1 Like

that’s a great idea. They are quite powerful and very flexible. You can check out the

for some examples on what is possible with functions.

1 Like