fixing redirect to work with virtual hosts

fixes the redirect to work with virtual hosts as well as being explicit about file to load