redirect to base host address on error url
fix typo
trim header key