Redirect support

Redirect support as discussed in #2