added default host redirect on errors