Then you can add a redirect for the old URL with the full path so that it redirects back to the main hostname. As for specifically how to do that in whatever server software you are using, that is ...
Redirects are a way of moving a webpage visitor from an old address to a new one without further action from them. Each webpage has a unique reference, a URL, to enable browsers to request the correct ...