add redirection query
Merge pull request #88 from forumbyr/master

add redirection query