title: Redirect mechanism that only replaces the domain name and keeps the path
body: <p>There is a website I used to visit called <a href="https://www.example.com" rel="nofollow noreferrer">www.example.com</a>.
  This website had its content under various paths such as <a href="http://www.example.com/abc123" rel="nofollow noreferrer">www.example.com/abc123</a>.</p>
  <p>Now, there is a new website that provides the same content: <a href="http://www.newwebsite.com/abc123" rel="nofollow noreferrer">www.newwebsite.com/abc123</a>. As you see, this new one uses the same path, just replacing the domain name.</p>
  <p>Is it possible to create a mechanism, so that when I visit <a href="http://www.example.com/abc123" rel="nofollow noreferrer">www.example.com/abc123</a>, it redirects me to <a href="http://www.newwebsite.com/abc123" rel="nofollow noreferrer">www.newwebsite.com/abc123</a> instead?</p>