Add redirection support.
fix wpreul review
Merge pull request #13 from highfivedenis/master

Add redirection support.