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 ...
A URL redirect is a command that directs computer browsers automatically from one website to another. Redirects are helpful tools that guide visitors to the correct website when, for example, the ...