oph-design/webserv

Redirect Requests

Closed this issue · 1 comments

Story

As a 42 Paris pedagogy guy I randomly want the webserver to handle redirects, so do redirects now.

Requirement

  • you can add the field 'rewrite' to any location in the config
  • the value of rewrite has to be an uri
  • When the location is requested, the response shall return 301
  • The response has a Field 'Location' with the redirected uri as value

did my part, where is the rest