fixing redirect to work with virtual hosts
Merge pull request #209 from tssgery/develop

fixing redirect to work with virtual hosts