I created a phpinfo.php
page in my Magento2 project but when I try to access it via URL it shows a 404 page.
It's set up here in the magento root:
|-Magento2
|-----<other folders etc.>
|-----phpinfo.php
url I try to go to: site.local/phpinfo.php
- returns 404
I tried running all the commands but still 404s.. is it something with routing that's preventing me from just accessing a file normally?
Edit: my phpinfo
code:
<?php
phpinfo();
http://site.local/index.php/phpinfo.php
If still not work than rename .htaccess than check.