If your template doesn’t come with a pre-configured error 404 page we highly recommend that you create one. This is a pretty simple process.
After you finish test that the site is working properly and test to ensure a failure url redirects properly.
You can then go into the robots.txt file located in the root directory and add the following line:
Replacing the /index.php?…. with the 404 article url.