Add domain redirect feature for BasicHandler