I created a new web site using Grav. The old site has pages that had to be accessed using urls ending .php
The url /somefolder/somepage.php just gives me “File not found”. It does NOT lead me to the built-in Grav error page.
I disabled the error plugin of Grav so it does not get in the way.
How do I rewrite any url ending in .php to the homepage /
Also, how can I redirect any 404 error to the home page?