Added redirect functionality

Readme for details