only redirect http traffic in production mode
Merge pull request #58 from dylan8902/development

only redirect http traffic in production mode