How to show a 404 error page when "No input file specified" appears?

Posted 3 years ago by SergioGregorutti

Hi all,

I just launched a Laravel application replacing an existing site.

The problem is that Google has a lot of pages indexed from the old site with urls like: "/results.php?id=3".

And when I click the link I go to the new website but the "No input file specified" error appears.

How can I show a 404 error page instead or handle this error to redirect to the new page?

Thanks in advance!

Please sign in or create an account to participate in this conversation.