We use this solution for any domain redefection, like shifting from one domain to another, but customers bookmarked the old domain. If the customer uses the old domain, it will be redirected to the new domain.
We can create a redirect domain if the source and destination domains are different on the commerce > Hosting > Domain subtab, here we can select redirect domain along with file path and parameter if required

If we want to redirect URL of a domain in the same domain we can add redirection URL on the redirect record under Commerce > Hosting > redirect > new
