If the URL contains specific keywords, I want to redirect the page to a new domain. The redirection should include the full original URI, i.e., it should just change the hostname on the requested URL.
E.g.
original URL:
abc.com/hello/world/how-are-you
if the URL contains "hello", it should be redirected to
xyz.com/hello/world/how-are-you
How can I do it using the .htaccess file of the Apache server?