I would suggest writing a custom middleware, which checks the url for route/param1/ and handles it the way you wish. Redirect, abort, etc... Read this https://laravel.com/docs/9.x/middleware#defining-middleware and try creating one to do what you wish.
You could apply it in the Kernel.php class to ALL routes, just in case...