fixing redirect to work with virtual hosts
Merge branch 'develop' into updatedb