implements redirect to domain
initial version