Hello, i created php simple in magento 2, the php information:
<?php phpinfo(); ?>
in folder \
the result is error 404 why?
Because all PHP files are routed through index.php. If you want to hit your custom PHP script through web browser, you need to make an exception in .htaccess (for apache) or nginx configuration file.