Fixed 404 bug for sites installed under virtual path