add autoredirect support
Merge pull request #12 from PlugIN73/add_autoredirect_support

add autoredirect support