title: Redirecting with Slim PHP v 3.x
body: <p>I have one route in my Slim PHP application. It goes like this: gallery.dev/roomPicture/RoomDetails/212 for example. I would like to redirect all this requests to route gallery.dev/login. Here is what I tried:</p>
  
  <pre><code>$app-&gt;get('/roomPicture/RoomDetails/{id}', function (Request $request, Response $response, $args){
   //some code
   return $this-&gt;response-&gt;withStatus(200)-&gt;withHeader('Location', 'login');
  </code></pre>
  
  <p>This redirects me to gallery.dev/roomPicture/RoomDetails/login multiple times, and then it throws an error.</p>
  
  <p>Do you have some idea how can I solve it? </p>
  
  <p>Thanks!</p>