When I enter a non existing page in the URL I should get a “Page not found” error message. However, I get redirected to a version of my home page. I do not have any custom redirects set up on the website.
So the most likely cause is a page within your web app.
Look in your access log to find the page request that is triggering the 404
and then fix the app to go to the correct page.
you read that wrong … what should be a 404 is a version of the home page (no 404) it sounds like there is some misconfig with apache (assuming apache) or some misconfig with the Drupal 10.1.6 app