title: Flask redirect with same url and different host?
body: <p>I'm using flask as web server.</p>
  
  <p>Currently, I have a request: <code>http://host-a.com/test1/?a=1&amp;b=2</code> and I want to redirect to <code>http://host-b.com/test1/?a=1&amp;b=2</code> and get the response.</p>
  
  <p>Now, I have a lot of such url as <code>test1</code>, <code>test2</code> and so on. I just want to redirect the host. How to deal with it?</p>
  
  <p>edited: There are many urls need to be redirected, while there are also many urls can't be redirected.</p>
  
  <p>For example: <code>http://host-a.com/test1/?a=1&amp;b=2</code> need, but <code>http://host-a.com/real1/?a=1&amp;b=2</code> can't</p>