Php file in public folder

System Information
  • Strapi Version: 4
  • Operating System: RedHat
  • Database: MySQL
  • Node Version: 16.18.0
  • NPM Version: 8.19.2
  • Yarn Version: 1.22.19

Hi guys. Is there a way to use php files in the public directory?

I realized that it only recognizes index.html, but index.php doesn’t work.

Thanks

@Talles_Amadeu - What is the use-case for this - perhaps there is an alternative approach for what you want to achieve? public is for static files and won’t be processed by the “server” - regardless, node will not parse->execute a .php file