fixed #38 Improve redirect class
Merge pull request #39 from cnmicha/38

fixed #38 Improve redirect class